diff options
author | Eivind Uggedal <eivind@uggedal.com> | 2014-05-27 07:25:42 +0000 |
---|---|---|
committer | Eivind Uggedal <eivind@uggedal.com> | 2014-05-27 07:25:47 +0000 |
commit | 9c3b46c207fefbd2082d8cb87c65710cfe55b4af (patch) | |
tree | 8cbb61f8c24f1ac70bf67e713f2acb491095fd6a | |
parent | 68ecebc057b7c44ab78a3adaea94bd014ebef815 (diff) | |
download | aports-9c3b46c207fefbd2082d8cb87c65710cfe55b4af.tar.bz2 aports-9c3b46c207fefbd2082d8cb87c65710cfe55b4af.tar.xz |
testing/py-oauthlib: new aport
-rw-r--r-- | testing/py-oauthlib/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/py-oauthlib/APKBUILD b/testing/py-oauthlib/APKBUILD new file mode 100644 index 0000000000..f2754943b9 --- /dev/null +++ b/testing/py-oauthlib/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=py-oauthlib +_pkgname=${pkgname#py-} +pkgver=0.6.1 +pkgrel=0 +pkgdesc="A Python implementation of the OAuth request-signing logic" +url="https://github.com/idan/oauthlib" +arch="noarch" +license="BSD" +depends="python py-crypto" +depends_dev="" +makedepends="python-dev py-setuptools" +install="" +subpackages="" +source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" + +_builddir="$srcdir"/$_pkgname-$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="18f8524c85606380c1ef8a7ff50d69cc oauthlib-0.6.1.tar.gz" +sha256sums="3850fbe9cd9a9a8f82b3ed79a5948aa9f46d6f4405eacbc6bafb74e9f755c8ee oauthlib-0.6.1.tar.gz" +sha512sums="862a65e604c0e031eb840e276ce59171cb5daa7165c8bc60d31b5e7583aab86f533ee9da9a5062c6f8a48a9b5e14df094415f3ad76329cbc89ec7534a3aa2c8e oauthlib-0.6.1.tar.gz" |