43 lines
1.1 KiB
Text
43 lines
1.1 KiB
Text
# Contributor: omni <omni+alpine@hack.org>
|
|
# Maintainer: omni <omni+alpine@hack.org>
|
|
pkgname=py3-psycopg
|
|
pkgver=3.1.10
|
|
pkgrel=0
|
|
pkgdesc="PostgreSQL adapter for python"
|
|
options="!check" # Requires running database
|
|
url="https://www.psycopg.org/"
|
|
arch="all"
|
|
license="LGPL-2.0-or-later"
|
|
# TODO: Remove py3-typing-extensions after upgrading python3 to 3.11
|
|
makedepends="
|
|
libpq-dev
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
python3-dev
|
|
"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/p/psycopg/psycopg-$pkgver.tar.gz
|
|
typing-ext.patch
|
|
"
|
|
builddir="$srcdir/psycopg-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
9aad13a487e8b7e945a044d0b19e0e2cf14e87d3ffc6a03dd3fbf608886b056708fb700678f3d415ab1c19a8cb48a7a685729d0a3d43992beaae00f640b94669 psycopg-3.1.10.tar.gz
|
|
eea6e80ae5c15398425fbebd662eca480daa69cab217b1b15db096e5cf830192d4a9b2f1f6cbaf2e85871a5994beec7db41778242df9ef3766164165b253c9c1 typing-ext.patch
|
|
"
|