aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/py-requests/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/py-requests/APKBUILD b/testing/py-requests/APKBUILD
new file mode 100644
index 0000000000..ffc853449a
--- /dev/null
+++ b/testing/py-requests/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer: William Pitcock <nenolod@dereferenced.org>
+pkgname=py-requests
+pkgver=1.0.4
+pkgrel=0
+pkgdesc="HTTP request library for Python"
+url="http://www.python-requests.org/"
+arch="noarch"
+license="Apache-2"
+depends="python"
+depends_dev=""
+makedepends="python-dev"
+install=""
+subpackages=""
+source="http://pypi.python.org/packages/source/r/requests/requests-$pkgver.tar.gz"
+
+_builddir="$srcdir"/requests-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ python setup.py build || return 1
+}
+
+package() {
+ cd "$_builddir"
+ python setup.py install --prefix=/usr --root="$pkgdir" || return 1
+}
+
+md5sums="0b7448f9e1a077a7218720575003a1b6 requests-1.0.4.tar.gz"