summaryrefslogtreecommitdiff
path: root/databases/py-psycopg2
diff options
context:
space:
mode:
authorjoerg <joerg>2006-07-12 16:34:39 +0000
committerjoerg <joerg>2006-07-12 16:34:39 +0000
commitfc47a04fb21ca6568ac20522ff4aa9c976ab3e80 (patch)
treed5aa0ef18f414d54b3afb6951faa0742320b11f6 /databases/py-psycopg2
parent1ff258b338bf620b201b5cd405ddf81e539d0929 (diff)
downloadpkgsrc-fc47a04fb21ca6568ac20522ff4aa9c976ab3e80.tar.gz
Import py-psycopg2-2.0.2, a rewritten version of psycopg:
This is version 2, a complete rewrite of the original code to provide new-style classes for connection and cursor objects and other sweet candies. Like the original, psycopg 2 was written with the aim of being very small and fast, and stable as a rock.
Diffstat (limited to 'databases/py-psycopg2')
-rw-r--r--databases/py-psycopg2/DESCR19
-rw-r--r--databases/py-psycopg2/Makefile19
-rw-r--r--databases/py-psycopg2/PLIST21
-rw-r--r--databases/py-psycopg2/buildlink3.mk19
-rw-r--r--databases/py-psycopg2/distinfo5
5 files changed, 83 insertions, 0 deletions
diff --git a/databases/py-psycopg2/DESCR b/databases/py-psycopg2/DESCR
new file mode 100644
index 00000000000..2f0da1a203d
--- /dev/null
+++ b/databases/py-psycopg2/DESCR
@@ -0,0 +1,19 @@
+psycopg is a PostgreSQL database adapter for the Python programming language
+(just like pygresql and popy.) It was written from scratch with the aim of
+being very small and fast, and stable as a rock. The main advantages of
+psycopg are that it supports (well... *will* support) the full Python
+DBAPI-2.0 and being thread safe at level 2.
+
+psycopg is different from the other database adapter because it was designed
+for heavily multi-threaded applications that create and destroy lots of
+cursors and make a conspicuous number of concurrent INSERTs or UPDATEs.
+Every open Python connection keeps a pool of real (UNIX or TCP/IP) connections
+to the database. Every time a new cursor is created, a new connection does not
+need to be opened; instead one of the unused connections from the pool is
+used. That makes psycopg very fast in typical client-server applications that
+create a servicing thread every time a client request arrives.
+
+This is version 2, a complete rewrite of the original code to provide
+new-style classes for connection and cursor objects and other
+sweet candies. Like the original, psycopg 2 was written with the aim of
+being very small and fast, and stable as a rock.
diff --git a/databases/py-psycopg2/Makefile b/databases/py-psycopg2/Makefile
new file mode 100644
index 00000000000..28e228994ca
--- /dev/null
+++ b/databases/py-psycopg2/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/07/12 16:34:39 joerg Exp $
+#
+
+DISTNAME= psycopg2-2.0.2
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= databases python
+MASTER_SITES= http://initd.org/pub/software/psycopg/
+
+MAINTAINER= joerg@NetBSD.org
+HOMEPAGE= http://initd.org/software/psycopg
+COMMENT= PostgreSQL database adapter for Python
+
+PYDISTUTILSPKG= yes
+PYTHON_VERSIONS_ACCEPTED= 24 23
+
+.include "../../lang/python/extension.mk"
+.include "../../mk/pgsql.buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/py-psycopg2/PLIST b/databases/py-psycopg2/PLIST
new file mode 100644
index 00000000000..7601eaabf0b
--- /dev/null
+++ b/databases/py-psycopg2/PLIST
@@ -0,0 +1,21 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/07/12 16:34:39 joerg Exp $
+${PYSITELIB}/psycopg2/__init__.py
+${PYSITELIB}/psycopg2/__init__.pyc
+${PYSITELIB}/psycopg2/__init__.pyo
+${PYSITELIB}/psycopg2/_psycopg.so
+${PYSITELIB}/psycopg2/extensions.py
+${PYSITELIB}/psycopg2/extensions.pyc
+${PYSITELIB}/psycopg2/extensions.pyo
+${PYSITELIB}/psycopg2/extras.py
+${PYSITELIB}/psycopg2/extras.pyc
+${PYSITELIB}/psycopg2/extras.pyo
+${PYSITELIB}/psycopg2/pool.py
+${PYSITELIB}/psycopg2/pool.pyc
+${PYSITELIB}/psycopg2/pool.pyo
+${PYSITELIB}/psycopg2/psycopg1.py
+${PYSITELIB}/psycopg2/psycopg1.pyc
+${PYSITELIB}/psycopg2/psycopg1.pyo
+${PYSITELIB}/psycopg2/tz.py
+${PYSITELIB}/psycopg2/tz.pyc
+${PYSITELIB}/psycopg2/tz.pyo
+@dirrm ${PYSITELIB}/psycopg2
diff --git a/databases/py-psycopg2/buildlink3.mk b/databases/py-psycopg2/buildlink3.mk
new file mode 100644
index 00000000000..4c129e582cc
--- /dev/null
+++ b/databases/py-psycopg2/buildlink3.mk
@@ -0,0 +1,19 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2006/07/12 16:34:39 joerg Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+PY_PSYCOPG_BUILDLINK3_MK:= ${PY_PSYCOPG_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= psycopg
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Npsycopg}
+BUILDLINK_PACKAGES+= psycopg
+
+.if !empty(PY_PSYCOPG_BUILDLINK3_MK:M+)
+BUILDLINK_API_DEPENDS.psycopg+= ${PYPKGPREFIX}-psycopg>=1.1.21
+BUILDLINK_ABI_DEPENDS.psycopg?= ${PYPKGPREFIX}-psycopg>=1.1.21nb1
+BUILDLINK_PKGSRCDIR.psycopg?= ../../databases/py-psycopg
+.endif # PY_PSYCOPG_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/databases/py-psycopg2/distinfo b/databases/py-psycopg2/distinfo
new file mode 100644
index 00000000000..0dc79ba3865
--- /dev/null
+++ b/databases/py-psycopg2/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/07/12 16:34:39 joerg Exp $
+
+SHA1 (psycopg2-2.0.2.tar.gz) = 94c37b6cfdc7fa40cf5c9b4e1b6d2b774f7b1ee2
+RMD160 (psycopg2-2.0.2.tar.gz) = 8a56c952eda241ebc000bd9455c3482ee5890345
+Size (psycopg2-2.0.2.tar.gz) = 279200 bytes