1 # Maintainer: Andrew Crerar <crerar@archlinux.org>
2 # Maintainer: Morten Linderud <foxboron@archlinux.org>
3 # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
4 # Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
5 # Contributor: Douglas Soares de Andrade <dsa@aur.archlinux.org>
7 pkgname=python-psycopg2
10 pkgdesc="A PostgreSQL database adapter for the Python programming language."
12 url="https://www.psycopg.org/"
14 depends=('python' 'postgresql-libs')
15 makedepends=('python-setuptools' 'postgresql-libs')
16 source=("https://github.com/psycopg/psycopg2/archive/refs/tags/${pkgver}.tar.gz")
17 b2sums=('9b3e1ddb6c23973e7577b27a46599c731edd77bd7017c25f3c5a1d57f89faffe066e5926b3ba4b7f1c7ab3b1ad18966b0f5ee40ceb1b358236cb85fb61d230ce')
19 cd "psycopg2-${pkgver}"
20 sed -i 's/,PSYCOPG_DEBUG$//' setup.cfg
25 cd "psycopg2-${pkgver}"
26 python setup.py install --root="$pkgdir" --optimize=1 --skip-build