aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-responses/APKBUILD
diff options
context:
space:
mode:
authorKeith Maxwell <keith.maxwell@gmail.com>2020-02-14 19:00:48 +0000
committerLeo <thinkabit.ukim@gmail.com>2020-02-14 17:06:47 -0300
commita092ac7458e1a4160530eafee3232243c0095de6 (patch)
tree11c09c1cdc682dce0ed2641fbfa7de666eaecbc6 /community/py3-responses/APKBUILD
parentd4cb60d815b65332d022275cb0eefa7fbf5ee94c (diff)
downloadaports-a092ac7458e1a4160530eafee3232243c0095de6.tar.gz
aports-a092ac7458e1a4160530eafee3232243c0095de6.tar.bz2
aports-a092ac7458e1a4160530eafee3232243c0095de6.tar.xz
community/py3-responses: move from testing
& adopt as maintainer. py3-responses is a requirement for testing py3-google-auth-1.11.2
Diffstat (limited to 'community/py3-responses/APKBUILD')
-rw-r--r--community/py3-responses/APKBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/community/py3-responses/APKBUILD b/community/py3-responses/APKBUILD
new file mode 100644
index 0000000000..b4fc745502
--- /dev/null
+++ b/community/py3-responses/APKBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Keith Maxwell <keith.maxwell@gmail.com>
+pkgname=py3-responses
+_pkgname=responses
+pkgver=0.10.10
+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/$_pkgname-$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="7a33529741e211ddf204543cd3490b8502fe8eb3d26f0b5956ce02d6a0e0273697d65d5eacf85ef7fc6470239daeb66a949e1c5200446792d8b8d24a31c88025 py3-responses-0.10.10.tar.gz"