aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-responses
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2017-08-15 03:06:06 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2017-08-15 03:06:06 +0000
commit96bc87369e16d458207d314958dee4dee9d2d13d (patch)
tree435d2768e15a000cabb05f6ec3d8524999da954f /testing/py-responses
parenta21df24acdcdd37d93f25d7fca1f4c7f26a69e72 (diff)
downloadaports-96bc87369e16d458207d314958dee4dee9d2d13d.tar.bz2
aports-96bc87369e16d458207d314958dee4dee9d2d13d.tar.xz
testing/py-responses: new aport
Diffstat (limited to 'testing/py-responses')
-rw-r--r--testing/py-responses/APKBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/testing/py-responses/APKBUILD b/testing/py-responses/APKBUILD
new file mode 100644
index 0000000000..3cd1e5b6b6
--- /dev/null
+++ b/testing/py-responses/APKBUILD
@@ -0,0 +1,46 @@
+# Maintainer: William Pitcock <nenolod@dereferenced.org>
+pkgname=py-responses
+pkgver=0.7.0
+pkgrel=0
+pkgdesc="generate and validate responses check digits"
+url="https://pypi.python.org/pypi/responses/"
+arch="noarch"
+license="BSD"
+depends="py-amqp"
+makedepends="python2-dev python3-dev py-setuptools"
+install=""
+subpackages="py2-responses:py2 py3-responses:py3"
+source="https://files.pythonhosted.org/packages/source/r/responses/responses-$pkgver.tar.gz"
+builddir="$srcdir/responses-$pkgver"
+
+build() {
+ cd "$_builddir"
+ python2 setup.py build
+ python3 setup.py build
+}
+
+package() {
+ mkdir -p "$pkgdir"
+}
+
+_py() {
+ local python="$1"
+ pkgdesc="$pkgdesc ${python#python}"
+ depends="$depends $python"
+ install_if="$pkgname=$pkgver-r$pkgrel $python"
+
+ cd "$builddir"
+ $python setup.py install --prefix=/usr --root="$subpkgdir"
+}
+
+py2() {
+ cd "$builddir"
+ _py python2
+}
+
+py3() {
+ cd "$builddir"
+ _py python3
+}
+
+sha512sums="352cf833b2c2a0b30618daac62355f6e62df2f0ad8b7bacd19b3f815c40a69064088238a0ecc44faa49dc2fc65fd176b30c0cbc526b468d38833af59a715a6d5 responses-0.7.0.tar.gz"