~dricottone/huttese-apk

ref: ae26d1e5bb093a083694c88bf21d50695b408838 huttese-apk/sr.ht/py3-asyncpg/APKBUILD -rw-r--r-- 1.1 KiB
ae26d1e5 — Drew DeVault sr.ht/py3-celery: upgrade to 4.4.0 4 years ago
                                                                                
cb4c58b7 Drew DeVault
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
29
30
31
32
33
34
35
36
37
# Contributor: Drew DeVault <sir@cmpwn.com>
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-asyncpg
_pyname=asyncpg
pkgver=0.18.3
pkgrel=0
pkgdesc="An asyncio PostgreSQL driver"
url="https://github.com/MagicStack/asyncpg"
arch="all"
license="Apache-2.0"
makedepends="python3-dev py3-setuptools cython cython-dev"
checkdepends="postgresql postgresql-contrib postgresql-dev"
_pypiprefix="${_pyname%${_pyname#?}}"
source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
replaces="py-asyncpg"
builddir="$srcdir"/$_pyname-$pkgver

build() {
	python3 setup.py build
}

check() {
	# https://github.com/MagicStack/asyncpg/pull/399
	# Fixed in next version
	cat >.flake8 <<-EOF
	[flake8]
	ignore = E402,E731
	exclude = .git,__pycache__,build,dist,.eggs,.github,.local
	EOF
	python3 setup.py test
}

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

sha512sums="695774aca0847a1ab2bc1a4ec052a6c241aac127ff8fd9d013f95483e93512320458e60eb8d6e9b3d5a4f8e7b0975251a5cafb8d96ba5efcf8f9042d82b235b6  asyncpg-0.18.3.tar.gz"