ayaports/user/py3-django-oauth-toolkit/APKBUILD

32 lines
976 B
Text

# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
_pyname=django-oauth-toolkit
pkgname="py3-$_pyname"
pkgver=2.2.0
pkgrel=0
arch="!armv7 noarch"
pkgdesc="OAuth2 Provider for Django"
url="https://pypi.python.org/project/$_pyname"
license="BSD-3-CLAUSE"
depends="py3-django py3-oauthlib"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
build() {
python setup.py build
}
check() {
PYTHONPATH="$srcdir" pytest || true
}
package() {
python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}
sha512sums="
ba370404f589793df1edc35b4d71dd2c117e3253637dd1d39d2bdb083b0950b885f725cf43f56a8f472f4deec7eca5f0e05e39208eaef969a2cee6ec5bbd1a3f py3-django-oauth-toolkit-2.2.0.tar.gz
"