python-pyodbc: add package
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
parent
a7d0759021
commit
1aca235d44
1 changed files with 65 additions and 0 deletions
65
lang/python/pyodbc/Makefile
Normal file
65
lang/python/pyodbc/Makefile
Normal file
|
@ -0,0 +1,65 @@
|
||||||
|
# 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.17
|
||||||
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
|
PKG_SOURCE_URL:=https://pypi.python.org/packages/ce/57/6b92aa5b3497dde6be55fd6fcb76c7db215ed1d56fde45c613add4a43095/
|
||||||
|
PKG_MD5SUM:=1560f9c915780237c525b765537d220f
|
||||||
|
PKG_HASH:=a82892ba8d74318524efaaccaf8351d3a3b4079a07e1a758902a2b9e84529c9d
|
||||||
|
PKG_BUILD_DEPENDS:=python python3 unixodbc
|
||||||
|
PKG_LICENSE:=MIT
|
||||||
|
PKG_LICENSE_FILES:=LICENSE.txt
|
||||||
|
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
|
||||||
|
|
||||||
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-$(PKG_NAME)-$(PKG_VERSION)
|
||||||
|
PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
|
||||||
|
|
||||||
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
$(call include_mk, python-package.mk)
|
||||||
|
$(call include_mk, python3-package.mk)
|
||||||
|
|
||||||
|
define Package/python-pyodbc/Default
|
||||||
|
SECTION:=lang
|
||||||
|
CATEGORY:=Languages
|
||||||
|
SUBMENU:=Python
|
||||||
|
URL:=https://github.com/mkleehammer/pyodbc
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/python-pyodbc
|
||||||
|
$(call Package/python-pyodbc/Default)
|
||||||
|
TITLE:=python-pyodbc
|
||||||
|
DEPENDS:=+unixodbc +libstdcpp +python-light
|
||||||
|
VARIANT:=python
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/python3-pyodbc
|
||||||
|
$(call Package/python-pyodbc/Default)
|
||||||
|
TITLE:=python3-pyodbc
|
||||||
|
DEPENDS:=+unixodbc +libstdcpp +python3-light
|
||||||
|
VARIANT:=python3
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/python-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
|
||||||
|
|
||||||
|
define Package/python3-pyodbc/description
|
||||||
|
$(call Package/python-pyodbc/description)
|
||||||
|
|
||||||
|
(Variant for Python3)
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call PyPackage,python-pyodbc))
|
||||||
|
$(eval $(call BuildPackage,python-pyodbc))
|
||||||
|
|
||||||
|
$(eval $(call Py3Package,python3-pyodbc))
|
||||||
|
$(eval $(call BuildPackage,python3-pyodbc))
|
Loading…
Reference in a new issue