# Maintainer: pkgname=py3-requests-oauthlib _pkgname=requests-oauthlib pkgver=1.0.0 pkgrel=2 pkgdesc="First-class OAuth library support for Requests" options="!check" # Requires 'requests-mock' url="https://pypi.python.org/pypi/requests-oauthlib" arch="noarch" license="ISC" depends="python3 py3-oauthlib py3-requests" makedepends="py3-setuptools" checkdepends="py3-mock" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" replaces="py-requests-oauthlib" # Backwards compatibility provides="py-requests-oauthlib=$pkgver-r$pkgrel" # Backwards compatibility build() { cd "$builddir" python3 setup.py build } check() { cd "$builddir" python3 setup.py test } package() { cd "$builddir" python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="b1036ca0533383dc5d6297de0cf65c9c705bbdc01b367adba94735424ac262f8e01cc2975da294af31af12c347d4a93b06ac3e18e159a45b3544aa051b2c59c8 requests-oauthlib-1.0.0.tar.gz"