summaryrefslogtreecommitdiffstats
path: root/package/python-psycopg2
diff options
context:
space:
mode:
Diffstat (limited to 'package/python-psycopg2')
-rw-r--r--package/python-psycopg2/Config.in22
-rw-r--r--package/python-psycopg2/python-psycopg2.hash4
-rw-r--r--package/python-psycopg2/python-psycopg2.mk20
3 files changed, 46 insertions, 0 deletions
diff --git a/package/python-psycopg2/Config.in b/package/python-psycopg2/Config.in
new file mode 100644
index 0000000000..ec852bb49e
--- /dev/null
+++ b/package/python-psycopg2/Config.in
@@ -0,0 +1,22 @@
+config BR2_PACKAGE_PYTHON_PSYCOPG2
+ bool "python-psycopg2"
+ select BR2_PACKAGE_POSTGRESQL
+ help
+ Psycopg is the most popular PostgreSQL database adapter for
+ the Python programming language. Its main features are the
+ complete implementation of the Python DB API 2.0 specification
+ and the thread safety (several threads can share the same
+ connection). It was designed for heavily multi-threaded
+ applications that create and destroy lots of cursors and make
+ a large number of concurrent INSERTs or UPDATEs.
+
+ Psycopg 2 is mostly implemented in C as a libpq wrapper,
+ resulting in being both efficient and secure. It features
+ client-side and server-side cursors, asynchronous
+ communication and notifications, COPY support. Many Python
+ types are supported out-of-the-box and adapted to matching
+ PostgreSQL data types; adaptation can be extended and
+ customized thanks to a flexible objects adaptation system.
+ Psycopg 2 is both Unicode and Python 3 friendly.
+
+ http://initd.org/psycopg/
diff --git a/package/python-psycopg2/python-psycopg2.hash b/package/python-psycopg2/python-psycopg2.hash
new file mode 100644
index 0000000000..ea4a07697b
--- /dev/null
+++ b/package/python-psycopg2/python-psycopg2.hash
@@ -0,0 +1,4 @@
+# md5 from https://pypi.python.org/pypi/psycopg2/json, sha256 locally computed
+md5 70fc57072e084565a42689d416cf2c5c psycopg2-2.7.4.tar.gz
+sha256 8bf51191d60f6987482ef0cfe8511bbf4877a5aa7f313d7b488b53189cf26209 psycopg2-2.7.4.tar.gz
+sha256 1752db3c786e12b62ca804178dca033adce8bff4c4b3d98d3449d407fe45210d LICENSE
diff --git a/package/python-psycopg2/python-psycopg2.mk b/package/python-psycopg2/python-psycopg2.mk
new file mode 100644
index 0000000000..e9327f4607
--- /dev/null
+++ b/package/python-psycopg2/python-psycopg2.mk
@@ -0,0 +1,20 @@
+################################################################################
+#
+# python-psycopg2
+#
+################################################################################
+
+PYTHON_PSYCOPG2_VERSION = 2.7.4
+PYTHON_PSYCOPG2_SOURCE = psycopg2-$(PYTHON_PSYCOPG2_VERSION).tar.gz
+PYTHON_PSYCOPG2_SITE = https://pypi.python.org/packages/74/83/51580322ed0e82cba7ad8e0af590b8fb2cf11bd5aaa1ed872661bd36f462
+PYTHON_PSYCOPG2_SETUP_TYPE = setuptools
+PYTHON_PSYCOPG2_LICENSE = LGPL-3.0+
+PYTHON_PSYCOPG2_LICENSE_FILES = LICENSE
+PYTHON_PSYCOPG2_DEPENDENCIES = postgresql
+
+# Force psycopg2 to use the Buildroot provided postgresql version
+# instead of the one from the host machine
+PYTHON_PSYCOPG2_BUILD_OPTS = build_ext --pg-config=$(STAGING_DIR)/usr/bin/pg_config
+PYTHON_PSYCOPG2_INSTALL_TARGET_OPTS = build_ext --pg-config=$(STAGING_DIR)/usr/bin/pg_config
+
+$(eval $(python-package))
OpenPOWER on IntegriCloud