b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | # This is free software, licensed under the GNU General Public License v2. |
| 2 | # See /LICENSE for more information. |
| 3 | # |
| 4 | |
| 5 | include $(TOPDIR)/rules.mk |
| 6 | |
| 7 | PKG_NAME:=python-pyodbc |
| 8 | PKG_VERSION:=5.0.1 |
| 9 | PKG_RELEASE:=1 |
| 10 | |
| 11 | PYPI_NAME:=pyodbc |
| 12 | PKG_HASH:=03d7d0b04d5a9156099ce8d03e92f3956783746fa9234eb6f5b5cfc12b645011 |
| 13 | |
| 14 | PKG_LICENSE:=MIT |
| 15 | PKG_LICENSE_FILES:=LICENSE.txt |
| 16 | PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com> |
| 17 | |
| 18 | # for odbc_config |
| 19 | PKG_BUILD_DEPENDS:=unixodbc/host |
| 20 | |
| 21 | include ../pypi.mk |
| 22 | include $(INCLUDE_DIR)/package.mk |
| 23 | include ../python3-package.mk |
| 24 | |
| 25 | define Package/python3-pyodbc |
| 26 | SECTION:=lang |
| 27 | CATEGORY:=Languages |
| 28 | SUBMENU:=Python |
| 29 | TITLE:=DB API module for ODBC |
| 30 | URL:=https://github.com/mkleehammer/pyodbc |
| 31 | DEPENDS:=+python3-light +python3-decimal +python3-uuid +libodbc +libstdcpp |
| 32 | endef |
| 33 | |
| 34 | define Package/python3-pyodbc/description |
| 35 | pyodbc is an open source Python module that makes accessing ODBC |
| 36 | databases simple. It implements the DB API 2.0 specification but is |
| 37 | packed with even more Pythonic convenience. |
| 38 | endef |
| 39 | |
| 40 | $(eval $(call Py3Package,python3-pyodbc)) |
| 41 | $(eval $(call BuildPackage,python3-pyodbc)) |
| 42 | # no src package - the module does not contain any Python code |