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.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.21
  7. PKG_RELEASE:=1
  8. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  9. PKG_SOURCE_URL:=https://pypi.python.org/packages/0f/04/c5638a4636fb8117fdc45685f489864459d193b1d892b61dce785ddf58f9
  10. PKG_HASH:=9655f84ca9e5cb2dfffff705601017420c840d55271ba62dd44f05383eff0329
  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. 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 +libstdcpp
  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))