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