projects/aports·blob master · refs

38 lines · 1.1 KiB

1# Contributor: Dmitry Zakharchenko <[email protected]>
2# Maintainer:
3pkgname=py3-grequests
4_pkgname=grequests
5pkgver=0.7.0
6pkgrel=4
7pkgdesc="Asynchronus HTTP requests with gevent"
8url="https://github.com/spyoungtech/grequests"
9arch="noarch"
10license="BSD-2-Clause"
11depends="python3 py3-gevent py3-requests"
12makedepends="py3-setuptools py3-gpep517"
13checkdepends="py3-nose"
14subpackages="$pkgname-pyc"
15source="$_pkgname-$pkgver.tar.gz::https://github.com/spyoungtech/grequests/archive/v$pkgver.tar.gz"
16builddir="$srcdir/$_pkgname-$pkgver"
17options="!check" # need net to httpbin and timeout quickly
18
19build() {
20 gpep517 build-wheel \
21 --wheel-dir .dist \
22 --output-fd 3 3>&1 >&2
23}
24
25check() {
26 python3 -m venv --clear --without-pip --system-site-packages .testenv
27 .testenv/bin/python3 -m installer .dist/*.whl
28 .testenv/bin/python3 -m nose
29}
30
31package() {
32 gpep517 install-wheel --destdir "$pkgdir" \
33 .dist/*.whl
34}
35
36sha512sums="
37ff3e57c7ed8ea643ad0b7a1987216e98de77d650807037a3c953f8fdb8e9a0090d79debb54205a13934c10043e4d3693336b9d9c1b5342fef383221bfefd5330 grequests-0.7.0.tar.gz
38"