aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-treq/APKBUILD
blob: 207a26a120050e4c09e62843f791d95907e456ee (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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=py3-treq
pkgver=20.9.0
pkgrel=0
pkgdesc="py3-requests-like API build on top of Twisted's HTTP client"
url="https://github.com/twisted/treq"
arch="noarch"
license="MIT"
depends="python3 py3-incremental py3-requests py3-six py3-twisted py3-attrs"
makedepends="py3-setuptools"
checkdepends="py3-httpbin py3-openssl py3-pytest py3-mock py3-service_identity"
source="$pkgname-$pkgver.tar.gz::https://github.com/twisted/treq/archive/release-$pkgver.tar.gz"
builddir="$srcdir/treq-release-$pkgver"

build() {
	python3 setup.py build
}

check() {
	rm -f src/treq/test/test_treq_integration.py
	python3 -m pytest
}

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

sha512sums="65eb8d353d835d85cfeb0edadf6a91c9f215a70acf044d9e4a18a4a796a483543197f6b0ebaa89d33516305b2ea9d00bb0a3448db765135207f7a619cb4bd08a  py3-treq-20.9.0.tar.gz"