aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-requests-futures/APKBUILD
blob: 84ce72f5763fe919f70be45c02a5c9f9dada20c4 (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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-requests-futures
pkgver=1.0.0
pkgrel=0
pkgdesc="Asynchronous Python HTTP for Humans"
url="https://github.com/ross/requests-futures"
arch="noarch"
license="Apache-2.0"
depends="python3 py3-requests"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://pypi.python.org/packages/source/r/requests-futures/requests-futures-$pkgver.tar.gz"
# Network is required for tests
# Some tests will fail until fixed: ttps://github.com/ross/requests-futures/issues/94
options="net !check"
builddir="$srcdir/requests-futures-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

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

sha512sums="64b39ed99712df8f1be74b2de97500d89711c0d5d3ba0f2b64e3bab755d0bf82029d7ced13b755ce12a2b86f3b673305b651ba6ff4cfb60aed40c8d5876f202c  requests-futures-1.0.0.tar.gz"