Files
packages/lang/python/pyodbc/Makefile
Jeffery To 66774c3b30 pyodbc: Fix segmentation fault
4.0.36 included a change to decimal parsing[1] that requires the decimal
module. Trying to load the pyodbc module without python3-decimal
installed would lead to a segmentation fault.

This adds python3-decimal as a dependency.

This also adds python3-uuid as a dependency as the module can accept and
return uuid objects[2].

[1]: 6b107a2bca
[2]: 2ad7a9ced7

Fixes: f02f3ee8c7 ("pyodbc: Update to 4.0.39")

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 668a0f9dd8)
2023-11-02 11:23:38 +01:00

42 lines
1.0 KiB
Makefile

# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=pyodbc
PKG_VERSION:=4.0.39
PKG_RELEASE:=2
PYPI_NAME:=$(PKG_NAME)
PKG_HASH:=e528bb70dd6d6299ee429868925df0866e3e919c772b9eff79c8e17920d8f116
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE.txt
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
PKG_BUILD_DEPENDS:=unixodbc/host
include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
include ../python3-package.mk
define Package/python3-pyodbc
SECTION:=lang
CATEGORY:=Languages
SUBMENU:=Python
TITLE:=python3-pyodbc
URL:=https://github.com/mkleehammer/pyodbc
DEPENDS:=+unixodbc +python3-light +python3-decimal +python3-uuid +libstdcpp
endef
define Package/python3-pyodbc/description
DB API Module for ODBC
A Python DB API 2 module for ODBC. This project provides an up-to-date,
convenient interface to ODBC using native data types like datetime and decimal.
endef
$(eval $(call Py3Package,python3-pyodbc))
$(eval $(call BuildPackage,python3-pyodbc))