mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 05:17:07 +02:00
44 lines
1.1 KiB
Plaintext
44 lines
1.1 KiB
Plaintext
# Contributor: omni <omni+alpine@hack.org>
|
|
# Maintainer: omni <omni+alpine@hack.org>
|
|
pkgname=py3-psycopg
|
|
pkgver=3.1.9
|
|
pkgrel=1
|
|
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="
|
|
ee49b263283e5b8d9c72e70ab9a86e6b1a33ad30f0f8ae42a1da4d137b7e38e94f18a1ab8c502925fdce0616a9356fb75097e17123989369c958002570fffc43 psycopg-3.1.9.tar.gz
|
|
b7c69bd57e54893f4a9548fe66766634b97b8345740ab8570dd03d7e3f4c778db059dd705aaae9e0d701fd8dc21d6f3b7beeb30ddb61b0fea0b0642cfbe5d282 typing-ext.patch
|
|
"
|