aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-requests-mock/APKBUILD
diff options
context:
space:
mode:
authorMichał Polański <michal@polanski.me>2020-03-03 18:52:00 +0100
committerLeo <thinkabit.ukim@gmail.com>2020-03-04 04:15:19 -0300
commit8bacfc5d2bab87d83be3bcac1826b69836ef30d1 (patch)
tree991f2925381ea26ba6e0ce0c3164145be357234a /community/py3-requests-mock/APKBUILD
parentc645d8b8aa0af0c4236376d5c18a32524c08ae4a (diff)
downloadaports-8bacfc5d2bab87d83be3bcac1826b69836ef30d1.tar.bz2
aports-8bacfc5d2bab87d83be3bcac1826b69836ef30d1.tar.xz
community/py3-requests-mock: move from testing
Diffstat (limited to 'community/py3-requests-mock/APKBUILD')
-rw-r--r--community/py3-requests-mock/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/community/py3-requests-mock/APKBUILD b/community/py3-requests-mock/APKBUILD
new file mode 100644
index 0000000000..72d14296c9
--- /dev/null
+++ b/community/py3-requests-mock/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Robert Sacks <robert@sacks.email>
+# Maintainer: Robert Sacks <robert@sacks.email>
+pkgname=py3-requests-mock
+_pyname=requests-mock
+pkgver=1.7.0
+pkgrel=0
+pkgdesc="Mock out responses from the requests package"
+url="https://pypi.org/project/requests-mock/"
+arch="noarch"
+license="Apache-2.0"
+depends="python3 py3-requests py3-six"
+makedepends="py3-pbr"
+checkdepends="py3-fixtures py3-mock py3-purl py3-pytest py3-sphinx
+ py3-testrepository py3-testtools"
+source="https://files.pythonhosted.org/packages/source/${_pyname%${_pyname#?}}/$_pyname/$_pyname-$pkgver.tar.gz"
+builddir="$srcdir/$_pyname-$pkgver"
+
+prepare() {
+ sed -i 's/python/python3/' .testr.conf
+}
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ python3 setup.py testr
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="6ad71fb87519f93812e8ae0d058a4b65a4492e86f05cacc37f95be1a6f0239a2c3f3d20a7e6f44bcc21f009574e4e78c2149394c2570d305efbdd68ec07b24a2 requests-mock-1.7.0.tar.gz"