ayaports/user/py3-django-guardian/APKBUILD

39 lines
1.2 KiB
Text
Raw Normal View History

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-01-12 18:48:03 +00:00
pkgrel=1
2023-05-07 22:41:06 +00:00
arch="!armv7 noarch"
2022-12-27 20:40:33 +00:00
pkgdesc="Implementation of per object permissions on top of Djangos authorization backend"
url="https://pypi.python.org/project/$_pyname"
license="MIT"
depends="py3-django py3-django-environ"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pytest-django"
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
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 --skip-build \
2022-12-27 20:40:33 +00:00
--optimize=1 \
--root="$pkgdir"
install -vDm 644 AUTHORS -t "$pkgdir/usr/share/doc/$pkgname"
install -vDm 644 README.rst -t "$pkgdir/usr/share/doc/$pkgname"
install -vDm 644 CHANGES -t "$pkgdir/usr/share/doc/$pkgname"
install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}
sha512sums="
7e65a27fbb485a047dd02466b7e36daceb4a27b5ff30ec035fa37b7d300e78e43de213606e54d0b1be2e64ae8835a55cef98788ae45ec2446e502fdd312d8ed6 py3-django-guardian-2.4.0.tar.gz
"