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.

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