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.

70 lines
1.9 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. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  9. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/pyodbc
  10. PKG_HASH:=e52700b5d24a846483b5ab80acd9153f8e593999c9184ffea11596288fb33de3
  11. PKG_BUILD_DEPENDS:=python python3 unixodbc
  12. PKG_LICENSE:=MIT
  13. PKG_LICENSE_FILES:=LICENSE.txt
  14. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-$(PKG_NAME)-$(PKG_VERSION)
  16. PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  17. PKG_BUILD_DEPENDS:=unixodbc/host
  18. include $(INCLUDE_DIR)/uclibc++.mk
  19. include $(INCLUDE_DIR)/package.mk
  20. include ../python-package.mk
  21. include ../python3-package.mk
  22. define Package/python-pyodbc/Default
  23. SECTION:=lang
  24. CATEGORY:=Languages
  25. SUBMENU:=Python
  26. URL:=https://github.com/mkleehammer/pyodbc
  27. DEPENDS:=+unixodbc $(CXX_DEPENDS)
  28. endef
  29. define Package/python-pyodbc
  30. $(call Package/python-pyodbc/Default)
  31. TITLE:=python-pyodbc
  32. DEPENDS+=+PACKAGE_python-pyodbc:python-light \
  33. +PACKAGE_python-pyodbc:python-logging \
  34. +PACKAGE_python-pyodbc:python-openssl
  35. VARIANT:=python
  36. endef
  37. define Package/python3-pyodbc
  38. $(call Package/python-pyodbc/Default)
  39. TITLE:=python3-pyodbc
  40. DEPENDS+=+PACKAGE_python3-pyodbc:python3-light
  41. VARIANT:=python3
  42. endef
  43. define Package/python-pyodbc/description
  44. DB API Module for ODBC
  45. A Python DB API 2 module for ODBC. This project provides an up-to-date,
  46. convenient interface to ODBC using native data types like datetime and decimal.
  47. endef
  48. define Package/python3-pyodbc/description
  49. $(call Package/python-pyodbc/description)
  50. (Variant for Python3)
  51. endef
  52. $(eval $(call PyPackage,python-pyodbc))
  53. $(eval $(call BuildPackage,python-pyodbc))
  54. $(eval $(call Py3Package,python3-pyodbc))
  55. $(eval $(call BuildPackage,python3-pyodbc))