aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-multidict/APKBUILD
blob: e23ae7d33a4d0d2e34a81404113ea563814c7a57 (plain)
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
38
39
40
41
42
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch>
# Maintainer:
pkgname=py3-multidict
_pkgname=multidict
pkgver=6.0.5
pkgrel=1
pkgdesc="multidict implementation"
url="https://github.com/aio-libs/multidict/"
arch="all"
license="Apache-2.0"
depends="python3"
checkdepends="py3-pytest py3-pytest-cov"
makedepends="py3-gpep517 python3-dev py3-setuptools cython py3-wheel"
subpackages="$pkgname-pyc"
source="$_pkgname-$pkgver.tar.gz::https://github.com/aio-libs/multidict/archive/v$pkgver.tar.gz
	no-exclude_also.patch
	"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	mv -v multidict multidict.src
	python3 -m venv --clear --without-pip --system-site-packages .testenv
	.testenv/bin/python3 -m installer .dist/*.whl
	.testenv/bin/python3 -m pytest
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
500d3b2a139d40442462a2b49f9dd0c01631643ef9905367d8b7c472a1030437c26a042a28e11ba94058a17821628d96f19ec6ca479d5831e2f1263ff0069871  multidict-6.0.5.tar.gz
dd8afd679dd47dde1a7240a1f3f21d3f6096c79ceee6356055c44977ab075efee7d4fb747d655e63580a1c1fe6079b644403b9f2b831f4de654bf063a3b0f3f9  no-exclude_also.patch
"