# Maintainer: Eivind Uggedal pkgname=py-oauthlib _pkgname=${pkgname#py-} pkgver=1.1.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 py-jwt" depends_dev="" makedepends="python-dev py-setuptools" install="" subpackages="" source="oauthlib-$pkgver.tar.gz::https://github.com/idan/oauthlib/archive/$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="b8ab57d6b88a98b09baf7acf26112646 oauthlib-1.1.1.tar.gz" sha256sums="8f33925202caeb681eaf0eead5552487f8c9026c241dbed3084a5462c52ac693 oauthlib-1.1.1.tar.gz" sha512sums="5a5db7e054b38d88a8b04c58ec028f8a007f3147d041f9683a1080309cc89c278787df70ec6089d9a0096cc14d5b61eddbfc248e0399c07f8aeccb39717b4c27 oauthlib-1.1.1.tar.gz"