# Maintainer: Antoine Martin (ayakael) # Contributor: Antoine Martin (ayakael) _pyname=djangorestframework-guardian pkgname=py3-django-rest-framework-guardian pkgver=0.3.0 pkgrel=2 arch="!armv7 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 "