2022-12-27 20:40:33 +00:00
|
|
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
|
|
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
|
|
|
|
|
|
|
|
_pyname=django-guardian
|
|
|
|
|
pkgname="py3-$_pyname"
|
|
|
|
|
pkgver=2.4.0
|
2023-08-30 17:54:51 +00:00
|
|
|
|
pkgrel=0
|
2023-08-11 19:49:05 +00:00
|
|
|
|
arch="noarch"
|
2022-12-27 20:40:33 +00:00
|
|
|
|
pkgdesc="Implementation of per object permissions on top of Django’s authorization backend"
|
|
|
|
|
url="https://pypi.python.org/project/$_pyname"
|
|
|
|
|
license="MIT"
|
2023-08-30 17:54:51 +00:00
|
|
|
|
depends="
|
|
|
|
|
py3-django
|
|
|
|
|
py3-django-environ
|
|
|
|
|
"
|
|
|
|
|
makedepends="
|
|
|
|
|
py3-setuptools
|
|
|
|
|
py3-wheel
|
|
|
|
|
py3-gpep517
|
|
|
|
|
py3-installer
|
|
|
|
|
"
|
|
|
|
|
checkdepends="
|
|
|
|
|
py3-pytest
|
|
|
|
|
py3-pytest-django
|
|
|
|
|
"
|
2022-12-27 20:40:33 +00:00
|
|
|
|
subpackages="$pkgname-doc"
|
|
|
|
|
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
|
|
|
|
|
builddir="$srcdir"/$_pyname-$pkgver
|
2023-08-30 17:54:51 +00:00
|
|
|
|
subpackages="$pkgname-pyc"
|
2022-12-27 20:40:33 +00:00
|
|
|
|
|
|
|
|
|
build() {
|
2023-08-30 17:54:51 +00:00
|
|
|
|
gpep517 build-wheel \
|
|
|
|
|
--wheel-dir dist \
|
|
|
|
|
--output-fd 3 3>&1 >&2
|
2022-12-27 20:40:33 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
check() {
|
2023-08-30 17:54:51 +00:00
|
|
|
|
pytest -v
|
2022-12-27 20:40:33 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
package() {
|
2023-08-30 17:54:51 +00:00
|
|
|
|
python3 -m installer -d "$pkgdir" \
|
|
|
|
|
dist/*.whl
|
2022-12-27 20:40:33 +00:00
|
|
|
|
}
|
2023-08-30 17:54:51 +00:00
|
|
|
|
|
2022-12-27 20:40:33 +00:00
|
|
|
|
sha512sums="
|
|
|
|
|
7e65a27fbb485a047dd02466b7e36daceb4a27b5ff30ec035fa37b7d300e78e43de213606e54d0b1be2e64ae8835a55cef98788ae45ec2446e502fdd312d8ed6 py3-django-guardian-2.4.0.tar.gz
|
|
|
|
|
"
|