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.

50 lines
1.2 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:=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 ../python3-package.mk
  19. define Package/python-pyodbc/Default
  20. SECTION:=lang
  21. CATEGORY:=Languages
  22. SUBMENU:=Python
  23. URL:=https://github.com/mkleehammer/pyodbc
  24. DEPENDS:=+unixodbc $(CXX_DEPENDS)
  25. endef
  26. define Package/python3-pyodbc
  27. $(call Package/python-pyodbc/Default)
  28. TITLE:=python3-pyodbc
  29. DEPENDS+=+PACKAGE_python3-pyodbc:python3-light
  30. VARIANT:=python3
  31. endef
  32. define Package/python3-pyodbc/description
  33. DB API Module for ODBC
  34. A Python DB API 2 module for ODBC. This project provides an up-to-date,
  35. convenient interface to ODBC using native data types like datetime and decimal.
  36. (Variant for Python3)
  37. endef
  38. $(eval $(call Py3Package,python3-pyodbc))
  39. $(eval $(call BuildPackage,python3-pyodbc))