blob: 6357d4bd674408b2ba2702e01f1ab75299ac40e8 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001# This is free software, licensed under the GNU General Public License v2.
2# See /LICENSE for more information.
3#
4
5include $(TOPDIR)/rules.mk
6
7PKG_NAME:=python-pyodbc
8PKG_VERSION:=5.0.1
9PKG_RELEASE:=1
10
11PYPI_NAME:=pyodbc
12PKG_HASH:=03d7d0b04d5a9156099ce8d03e92f3956783746fa9234eb6f5b5cfc12b645011
13
14PKG_LICENSE:=MIT
15PKG_LICENSE_FILES:=LICENSE.txt
16PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
17
18# for odbc_config
19PKG_BUILD_DEPENDS:=unixodbc/host
20
21include ../pypi.mk
22include $(INCLUDE_DIR)/package.mk
23include ../python3-package.mk
24
25define 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
32endef
33
34define Package/python3-pyodbc/description
35pyodbc is an open source Python module that makes accessing ODBC
36databases simple. It implements the DB API 2.0 specification but is
37packed with even more Pythonic convenience.
38endef
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