diff options
author | Eivind Uggedal <eivind@uggedal.com> | 2014-06-07 12:40:45 +0000 |
---|---|---|
committer | Eivind Uggedal <eivind@uggedal.com> | 2014-06-07 12:40:45 +0000 |
commit | 05a8daa2ad11cf2740327b9c79fa9dc5a6808d8f (patch) | |
tree | 88784d9d5a178a3c16b9094dc4e57d17a91fd05c /testing | |
parent | 114e2145ae89e691c720aaa471cc24185c5d74dc (diff) | |
download | aports-05a8daa2ad11cf2740327b9c79fa9dc5a6808d8f.tar.bz2 aports-05a8daa2ad11cf2740327b9c79fa9dc5a6808d8f.tar.xz |
testing/py-jwt: new aport
Diffstat (limited to 'testing')
-rw-r--r-- | testing/py-jwt/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/py-jwt/APKBUILD b/testing/py-jwt/APKBUILD new file mode 100644 index 0000000000..e67c021dab --- /dev/null +++ b/testing/py-jwt/APKBUILD @@ -0,0 +1,39 @@ +# Maintainer: Eivind Uggedal <eivind@uggedal.com> +pkgname=py-jwt +_pkgname=PyJWT +pkgver=0.2.1 +pkgrel=0 +pkgdesc="Python JSON Web Token implementation" +url="https://github.com/progrium/pyjwt" +arch="noarch" +license="MIT" +depends="python" +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="500fdbdd4c7b60404063f7d9c2717108 PyJWT-0.2.1.tar.gz" +sha256sums="cfd0fad01a9a57fb4b24e59a82ffd50ddc9c2c4344694ec6ef436ae11d5d18aa PyJWT-0.2.1.tar.gz" +sha512sums="28f24ae705154e70fd15ed13830b1980b21a37df2fb5acd436d9d0ca4bbaf56bf146131762278a239d5a87585a70c282efd6e5fe13fb00e7fc7f0b6204b15713 PyJWT-0.2.1.tar.gz" |