blob: cd9ae9767b8edb5a9acf916ee16201e2713bc8d1 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#
2# Copyright (C) 2016 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=python-psycopg2
11PKG_VERSION:=2.9.7
12PKG_RELEASE:=1
13
14PYPI_NAME:=psycopg2
15PKG_HASH:=f00cc35bd7119f1fed17b85bd1007855194dde2cbd8de01ab8ebb17487440ad8
16
17PKG_MAINTAINER:=Daniel Danzberger <daniel@dd-wrt.com>
18PKG_LICENSE:=LGPL-3.0-or-later
19PKG_LICENSE_FILES:=LICENSE
20
21include ../pypi.mk
22include $(INCLUDE_DIR)/package.mk
23include ../python3-package.mk
24
25define Package/python3-psycopg2
26 SUBMENU:=Python
27 SECTION:=lang
28 CATEGORY:=Languages
29 TITLE:=PostgreSQL database adapter
30 URL:=https://www.psycopg.org/
31 DEPENDS:= \
32 +python3-light \
33 +python3-decimal \
34 +python3-logging \
35 +python3-uuid \
36 +libpq
37endef
38
39define Package/python3-psycopg2/description
40Psycopg is the most popular PostgreSQL adapter for the Python
41programming language
42endef
43
44$(eval $(call Py3Package,python3-psycopg2))
45$(eval $(call BuildPackage,python3-psycopg2))
46$(eval $(call BuildPackage,python3-psycopg2-src))