blob: fe83d3eaed34df87316aa5b5bcfb3d3574e71bd3 (
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=21.1.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="9bcca6e4acd316529608654a15e70459693a877920bce262bdce505c2b6ad9397a84b9c4b24a56e123f98975a8271eb9306babd5808d840bff19117d7e64ff3f py3-treq-21.1.0.tar.gz"
|