From 90883d5fd0cba4b7a6ebf119f0405be7e91506bc Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Tue, 8 Jan 2013 22:45:24 -0600 Subject: testing/py-requests: new aport --- testing/py-requests/APKBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 testing/py-requests/APKBUILD (limited to 'testing/py-requests') 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 +# Maintainer: William Pitcock +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" -- cgit v1.2.3