diff options
author | William Pitcock <nenolod@dereferenced.org> | 2013-01-08 22:45:24 -0600 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2013-01-08 22:45:41 -0600 |
commit | 90883d5fd0cba4b7a6ebf119f0405be7e91506bc (patch) | |
tree | d4e2494bba5709da09e5c4782506b52041b4a02f | |
parent | 5d8167beb12943eae4fa76367fb691d475388ae7 (diff) | |
download | aports-90883d5fd0cba4b7a6ebf119f0405be7e91506bc.tar.bz2 aports-90883d5fd0cba4b7a6ebf119f0405be7e91506bc.tar.xz |
testing/py-requests: new aport
-rw-r--r-- | testing/py-requests/APKBUILD | 38 |
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" |