You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.7 KiB

  1. # This is free software, licensed under the GNU General Public License v2.
  2. # See /LICENSE for more information.
  3. #
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=pyodbc
  6. PKG_VERSION:=4.0.26
  7. PKG_RELEASE:=2
  8. PYPI_NAME:=$(PKG_NAME)
  9. PKG_HASH:=e52700b5d24a846483b5ab80acd9153f8e593999c9184ffea11596288fb33de3
  10. PKG_BUILD_DEPENDS:=python python3 unixodbc
  11. PKG_LICENSE:=MIT
  12. PKG_LICENSE_FILES:=LICENSE.txt
  13. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  14. PKG_BUILD_DEPENDS:=unixodbc/host
  15. include ../pypi.mk
  16. include $(INCLUDE_DIR)/uclibc++.mk
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../python-package.mk
  19. include ../python3-package.mk
  20. define Package/python-pyodbc/Default
  21. SECTION:=lang
  22. CATEGORY:=Languages
  23. SUBMENU:=Python
  24. URL:=https://github.com/mkleehammer/pyodbc
  25. DEPENDS:=+unixodbc $(CXX_DEPENDS)
  26. endef
  27. define Package/python-pyodbc
  28. $(call Package/python-pyodbc/Default)
  29. TITLE:=python-pyodbc
  30. DEPENDS+=+PACKAGE_python-pyodbc:python-light \
  31. +PACKAGE_python-pyodbc:python-logging \
  32. +PACKAGE_python-pyodbc:python-openssl
  33. VARIANT:=python
  34. endef
  35. define Package/python3-pyodbc
  36. $(call Package/python-pyodbc/Default)
  37. TITLE:=python3-pyodbc
  38. DEPENDS+=+PACKAGE_python3-pyodbc:python3-light
  39. VARIANT:=python3
  40. endef
  41. define Package/python-pyodbc/description
  42. DB API Module for ODBC
  43. A Python DB API 2 module for ODBC. This project provides an up-to-date,
  44. convenient interface to ODBC using native data types like datetime and decimal.
  45. endef
  46. define Package/python3-pyodbc/description
  47. $(call Package/python-pyodbc/description)
  48. (Variant for Python3)
  49. endef
  50. $(eval $(call PyPackage,python-pyodbc))
  51. $(eval $(call BuildPackage,python-pyodbc))
  52. $(eval $(call Py3Package,python3-pyodbc))
  53. $(eval $(call BuildPackage,python3-pyodbc))