backports/py3-django-oauth-toolkit: move from user
This commit is contained in:
parent
93314a5349
commit
09363bd7d7
2 changed files with 54 additions and 32 deletions
54
backports/py3-django-oauth-toolkit/APKBUILD
Normal file
54
backports/py3-django-oauth-toolkit/APKBUILD
Normal file
|
@ -0,0 +1,54 @@
|
|||
# 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
|
||||
"
|
|
@ -1,32 +0,0 @@
|
|||
# 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="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
|
||||
"
|
Loading…
Reference in a new issue