1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 11:45:18 +03:00
aports/community/py3-django-guardian/APKBUILD
Antoine Martin d36771d9e9 community/py3-django-guardian: upgrade to 3.0.0
* Python 3.13 support
* DJango 5.1 support
2025-05-11 20:10:00 +00:00

45 lines
1 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-django-guardian
_pyname=django-guardian
pkgver=3.0.0
pkgrel=0
arch="noarch"
pkgdesc="Implementation of per object permissions on top of Djangos authorization backend"
url="https://pypi.python.org/project/django-guardian"
license="MIT"
depends="
py3-django
py3-django-environ
"
makedepends="
py3-setuptools
py3-wheel
py3-gpep517
"
checkdepends="
py3-pytest
py3-pytest-django
"
source="$pkgname-$pkgver.tar.gz::https://github.com/django-guardian/django-guardian/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
subpackages="$pkgname-pyc"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
pytest -v
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
729edc1556a4312476216a32a8221f15664f666f465697250ac38a6dfb5de633e4b223decf3445c3b461127bc9d41fe794fdd61188017107b88bb5eb34c04587 py3-django-guardian-3.0.0.tar.gz
"