testing/py3-django-rest-framework-guardian: move from user
This commit is contained in:
parent
c33d300107
commit
36950d2048
2 changed files with 44 additions and 32 deletions
44
testing/py3-django-rest-framework-guardian/APKBUILD
Normal file
44
testing/py3-django-rest-framework-guardian/APKBUILD
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||||
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||||
|
|
||||||
|
_pyname=djangorestframework-guardian
|
||||||
|
pkgname=py3-django-rest-framework-guardian
|
||||||
|
pkgver=0.3.0
|
||||||
|
pkgrel=0
|
||||||
|
arch="noarch"
|
||||||
|
pkgdesc="django-guardian support for Django REST Framework"
|
||||||
|
url="https://pypi.python.org/project/$_pyname"
|
||||||
|
license="MIT"
|
||||||
|
depends="
|
||||||
|
py3-django-rest-framework
|
||||||
|
py3-django-guardian
|
||||||
|
"
|
||||||
|
makedepends="
|
||||||
|
py3-setuptools
|
||||||
|
py3-gpep517
|
||||||
|
py3-wheel
|
||||||
|
py3-installer
|
||||||
|
"
|
||||||
|
options="!check" # Broken testsuite
|
||||||
|
source="$pkgname-$pkgver.tar.gz::https://github.com/rpkilby/django-rest-framework-guardian/archive/refs/tags/$pkgver.tar.gz"
|
||||||
|
builddir="$srcdir"/django-rest-framework-guardian-$pkgver
|
||||||
|
subpackages="$pkgname-pyc"
|
||||||
|
|
||||||
|
build() {
|
||||||
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
python3 ./manage.py --no-input -v 2
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
python3 -m installer -d "$pkgdir" \
|
||||||
|
dist/*.whl
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="
|
||||||
|
ce196162f42671e6eeb56b17dd432380ff99626dd541b8d2e7e80e4ec7bfc5c884fd3c37652632363173368f9eb1ae0aa82dc25cb1c46ba927f2170d1abbce94 py3-django-rest-framework-guardian-0.3.0.tar.gz
|
||||||
|
"
|
|
@ -1,32 +0,0 @@
|
||||||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
||||||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
||||||
|
|
||||||
_pyname=djangorestframework-guardian
|
|
||||||
pkgname=py3-django-rest-framework-guardian
|
|
||||||
pkgver=0.3.0
|
|
||||||
pkgrel=2
|
|
||||||
arch="noarch"
|
|
||||||
pkgdesc="django-guardian support for Django REST Framework"
|
|
||||||
url="https://pypi.python.org/project/$_pyname"
|
|
||||||
license="MIT"
|
|
||||||
depends="py3-django-rest-framework"
|
|
||||||
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() {
|
|
||||||
python3 setup.py build
|
|
||||||
}
|
|
||||||
|
|
||||||
check() {
|
|
||||||
PYTHONPATH="$PWD/src" pytest || true
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
|
||||||
python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
|
|
||||||
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
|
|
||||||
}
|
|
||||||
sha512sums="
|
|
||||||
a6fb1993f558a5267af5b303e08632a6128fa68057d6df62c111a7a10ad1817942a1bcb9d61abf34f7580c79c93970894f81d6e8ab94158635da298e036471cc py3-django-rest-framework-guardian-0.3.0.tar.gz
|
|
||||||
"
|
|
Loading…
Reference in a new issue