2022-12-27 20:40:33 +00:00
|
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
|
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
|
|
|
|
|
|
_pyname=djangorestframework-guardian
|
2023-03-31 20:26:25 +00:00
|
|
|
pkgname=py3-django-rest-framework-guardian
|
2022-12-27 20:40:33 +00:00
|
|
|
pkgver=0.3.0
|
2023-03-31 20:26:25 +00:00
|
|
|
pkgrel=2
|
2023-08-11 19:49:05 +00:00
|
|
|
arch="noarch"
|
2022-12-27 20:40:33 +00:00
|
|
|
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() {
|
2023-01-12 18:48:03 +00:00
|
|
|
python3 setup.py build
|
2022-12-27 20:40:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
PYTHONPATH="$PWD/src" pytest || true
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2023-01-12 18:48:03 +00:00
|
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
|
2022-12-27 20:40:33 +00:00
|
|
|
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
|
|
|
|
}
|
|
|
|
sha512sums="
|
|
|
|
a6fb1993f558a5267af5b303e08632a6128fa68057d6df62c111a7a10ad1817942a1bcb9d61abf34f7580c79c93970894f81d6e8ab94158635da298e036471cc py3-django-rest-framework-guardian-0.3.0.tar.gz
|
|
|
|
"
|