New package: python-psycopg2-2.6.2

This commit is contained in:
Toyam Cox 2016-07-17 01:04:10 -04:00
parent c5535e1ea5
commit fe61e96100
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,30 @@
# Template file for 'python-psycopg2'
pkgname=python-psycopg2
version=2.6.2
revision=1
_series="${version%.*}"
_module="${pkgname#python-}"
wrksrc="${_module}-${version}"
build_style=python-module
python_versions='2.7 3.4'
pycompile_version="2.7"
pycompile_module="${_module}"
# Require postgresql-libs-devel to find executable: pg_config
hostmakedepends="python-devel python3.4-devel postgresql-libs-devel"
# Require postgresql-libs-devel for libpq-fe.h
makedepends="python-devel python3.4-devel postgresql-libs-devel"
short_desc="PostgreSQL adapter for Python designed to be thread safe"
maintainer="Toyam Cox <Vaelatern@gmail.com>"
license="LGPL-3"
homepage="http://initd.org/psycopg"
distfiles="${homepage}/tarballs/PSYCOPG-${_series/./-}/psycopg2-${version}.tar.gz"
checksum=70490e12ed9c5c818ecd85d185d363335cc8a8cbf7212e3c185431c79ff8c05c
python3.4-psycopg2_package() {
pycompile_version="3.4"
pycompile_module="${_module}"
short_desc="${short_desc/Python/Python3.4}"
pkg_install() {
vmove usr/lib/python3.4
}
}

1
srcpkgs/python3.4-psycopg2 Symbolic link
View File

@ -0,0 +1 @@
python-psycopg2