# Maintainer: Antoine Martin (ayakael) # Contributor: Antoine Martin (ayakael) _pyname=pytest-django pkgname="py3-$_pyname" pkgver=4.5.2 pkgrel=0 arch="!armv7 noarch" pkgdesc="A Django plugin for py.test" url="https://pypi.python.org/project/$_pyname" license="BSD-3-Clause" depends="py3-pytest" makedepends="py3-setuptools_scm" checkdepends="py3-pytest-xdist py3-django" source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz" builddir="$srcdir"/$_pyname-$pkgver build() { python setup.py build } check() { python setup.py install --root="$PWD/tmp_install" --optimize=1 PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages:$PYTHONPATH:$PWD" \ DJANGO_SETTINGS_MODULE=pytest_django_test.settings_sqlite \ py.test tests || true } package() { python setup.py install --root="$pkgdir" --optimize=1 install -Dm664 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } sha512sums=" bde0ee6f1c728ff2b6f965150fbbcb25c8ef5a24732256d2d688ee95c243ca2dd0f9606fac559b2c204dd2835ff5362a934cd176fabc7479b21a1e55fe284f4d py3-pytest-django-4.5.2.tar.gz "