aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-responses/APKBUILD
blob: badcae953cbd58f80a38ee4bd8de077a2f4f4468 (plain) (blame)
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
32
# Maintainer: Keith Maxwell <keith.maxwell@gmail.com>
pkgname=py3-responses
_pyname=responses
pkgver=0.10.15
pkgrel=0
pkgdesc="Utility library for mocking out the requests Python library"
url="https://pypi.python.org/pypi/responses/"
arch="noarch"
license="Apache-2.0"
depends="py3-requests py3-six"
makedepends="py3-setuptools"
checkdepends="py3-flake8 py3-pytest py3-pytest-cov py3-pytest-localserver
	py3-werkzeug"
source="$pkgname-$pkgver.tar.gz::https://github.com/getsentry/responses/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

replaces=py-responses # Backwards compatibility
provides=py-responses=$pkgver-r$pkgrel # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	py.test-3
}

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

sha512sums="3da49823493ea65b2f0bcd0f63338552df8aa553ad3ac82d150c5753dafa2275a7e1c6499c4db82883a3a4b6348ca26158301842bdc84d3a1c9c73b15b716c61  py3-responses-0.10.15.tar.gz"