Info2: << Package: psycopg2-py%type_pkg[python] Version: 2.5.2 Revision: 2 Description: PostgreSQL database adapter for Python License: LGPL Maintainer: Kurt Schwehr Type: python (2.7 3.2 3.3 3.4 3.5) Distribution: (%type_pkg[python] = 32) 10.7, (%type_pkg[python] = 32) 10.8, (%type_pkg[python] = 32) 10.9, (%type_pkg[python] = 33) 10.7, (%type_pkg[python] = 33) 10.8, (%type_pkg[python] = 33) 10.9 BuildDepends: python%type_pkg[python], postgresql92-dev (>= 1:0-0) Depends: python%type_pkg[python], postgresql92-shlibs Recommends: postgresql92, postgis92 Source-MD5: 53d81793fbab8fee6e732a0425d50047 Source: http://pypi.python.org/packages/source/p/psycopg2/psycopg2-%v.tar.gz CompileScript: << #!/bin/bash -ev if [ "%type_pkg[python]" -ge "31" ]; then 2to3-%type_raw[python] --write --no-diffs . fi %p/bin/python%type_raw[python] setup.py build << # Test Phase: # Must create role "nobody" or "root" in the database. # Also note this can only be run after psycopg2 # is installed. Need more magic to run it before. # As of September 30, 2006 results are: # Ran 35 tests in 2.196s # FAILED (failures=2, errors=1) # Maintainer Notified. InfoTest: << TestScript: << PYTHONPATH=`pwd`/`ls -d build/lib*` %p/bin/python%type_raw[python] tests/test_psycopg2_dbapi20.py || exit 2 << << #Install Phase: DocFiles: AUTHORS INSTALL README NEWS LICENSE InstallScript: << rm -f build/lib*/psycopg2/*.pyc %p/bin/python%type_raw[python] setup.py install --prefix=%p --root=%d << # Additional Info DescDetail: << psycopg 2 is an almost complete rewrite of psycopg. It still supports all the features of psycopg but adds real adaptation for Python to PostgreSQL type conversions, asynchronous queries, support for the Python built-in datetime module and the new (Python 2.4) Decimal type. psycopg2 is a PostgreSQL database adapter for the Python programming language. It was written from scratch with the aim of being very small and fast, and stable as a rock. The main advantages of psycopg2 are that it supports the full Python DBAPI-2.0 and being thread safe at level 2. << Homepage: http://initd.org/pub/software/psycopg2 DescPackaging: << In order for the -m maintainer tests to work, you need to run these two commands first: createdb psycopg2_test createuser root No need for python-mx date module. Now uses built in datetime. << <<