25 lines
862 B
Bash
25 lines
862 B
Bash
# Template file for 'python-psycopg2'
|
|
pkgname=python-psycopg2
|
|
version=2.8.2
|
|
revision=1
|
|
wrksrc="psycopg2-${version}"
|
|
build_style=python-module
|
|
pycompile_module="psycopg2"
|
|
# Require postgresql-libs-devel to find executable: pg_config
|
|
hostmakedepends="postgresql-libs-devel python3-setuptools python-setuptools"
|
|
# Require postgresql-libs-devel for libpq-fe.h
|
|
makedepends="python-devel python3-devel postgresql-libs-devel"
|
|
short_desc="PostgreSQL adapter for Python2"
|
|
maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
|
|
license="LGPL-3.0-or-later"
|
|
homepage="http://initd.org/psycopg"
|
|
distfiles="${PYPI_SITE}/p/psycopg2/psycopg2-${version}.tar.gz"
|
|
checksum=5cacf21b6f813c239f100ef78a4132056f93a5940219ec25d2ef833cbeb05588
|
|
|
|
python3-psycopg2_package() {
|
|
pycompile_module="psycopg2"
|
|
short_desc="${short_desc/Python/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
}
|
|
}
|