aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-trio/APKBUILD
blob: 60ce66bb2c73db8fd562298956668f0ec20577e8 (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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-trio
pkgver=0.14.0
pkgrel=1
pkgdesc="A friendly Python library for async concurrency and I/O"
url="https://trio.readthedocs.io/"
arch="noarch"
license="MIT OR Apache-2.0"
depends="python3 py3-sniffio py3-outcome py3-idna py3-sortedcontainers py3-openssl"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-astor py3-trustme"
source="https://pypi.python.org/packages/source/t/trio/trio-$pkgver.tar.gz
	fix-tests.patch
	"
builddir="$srcdir/trio-$pkgver"

case "$CARCH" in
	ppc64le) options="$options !check" ;; # unix pipes test times out
esac

build() {
	python3 setup.py build
}

check() {
	pytest -m "not redistributors_should_skip"
}

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

sha512sums="11653720f8152f296186599eeb522df4c39b6c19c028f29af0d73524ab8cb59d03d5966e73cd942cdea31cc273c3b686980c508c39421427089f43157c8c1f3e  trio-0.14.0.tar.gz
71a8bf047d178fb1041bd99a0fcc032d3e6df9f5f1be72c0161cd607a626f69ddf675e4d81a958d444b761259af0810803a71afe7f18313db322f2ed4c5dc5de  fix-tests.patch"