summaryrefslogtreecommitdiff
path: root/user/py3-psycopg2/APKBUILD
blob: 6e0a3899e22af9caef0b8d0789e195e5a8c5a7bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Zach van Rijn <me@zv.io>
pkgname=py3-psycopg2
_pkgname=psycopg2
_p="${_pkgname#?}"
_p="${_pkgname%"$_p"}"
pkgver=2.9.5
pkgrel=0
pkgdesc="PostgreSQL adapter for python"
url="https://www.psycopg.org/"
arch="all"
options="!check"  # Requires a running PostgreSQL server.
# Certified net clean
license="LGPL-3.0+ WITH OpenSSL-link-exception"
depends="python3"
makedepends="postgresql-dev python3-dev"
source="https://files.pythonhosted.org/packages/source/$_p/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="61e431ceeba0830597b6a02882d670fef216d3d5ee5c6c1ce7a6ecdd13a8e04ee6637f7cb2ee39517b465f1ad014c48ddbba44154bd1dfc7f3fd08bd9ea82e43  psycopg2-2.9.5.tar.gz"