54 lines
1.3 KiB
Text
54 lines
1.3 KiB
Text
# Contributor: Celeste <cielesti@protonmail.com>
|
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
pkgname=py3-django-oauth-toolkit
|
|
pkgver=2.3.0
|
|
pkgrel=0
|
|
pkgdesc="OAuth2 Provider for Django"
|
|
url="https://django-oauth-toolkit.readthedocs.io/"
|
|
arch="noarch"
|
|
license="BSD-2-Clause-Views"
|
|
depends="
|
|
py3-django
|
|
py3-jwcrypto
|
|
py3-oauthlib
|
|
py3-requests
|
|
"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
"
|
|
checkdepends="
|
|
py3-django-rest-framework
|
|
py3-pytest-cov
|
|
py3-pytest-django
|
|
py3-pytest-forked
|
|
py3-pytest-mock
|
|
py3-pytest-xdist
|
|
py3-tz
|
|
"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://github.com/jazzband/django-oauth-toolkit/archive/$pkgver/py3-django-oauth-toolkit-$pkgver.tar.gz"
|
|
builddir="$srcdir/django-oauth-toolkit-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
DJANGO_SETTINGS_MODULE=tests.settings \
|
|
.testenv/bin/python3 -m pytest -n auto --forked
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
6e4701210300e3e04f85a38e3461daebed7f5d305e8d11fc60a31a715f43d9fc2eed50cf5ff381e6ce11dca479a7dadfbdfacab37e06d88a674b872a50c1a9d1 py3-django-oauth-toolkit-2.3.0.tar.gz
|
|
"
|