# Maintainer: Antoine Martin (ayakael) # Contributor: Antoine Martin (ayakael) _pyname=django-environ pkgname="py3-$_pyname" pkgver=0.9.0 pkgrel=0 arch="noarch" pkgdesc="A package that allows you to utilize 12factor inspired environment variables to configure your Django application." url="https://pypi.python.org/project/$_pyname" license="MIT" depends="py3-django" makedepends="py3-build py3-installer py3-setuptools py3-wheel" 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 -m build --wheel --no-isolation } check() { PYTHONPATH="$PWD/src" pytest || true } package() { python3 -m installer --destdir="$pkgdir" dist/*.whl install -vDm 644 AUTHORS.rst -t "$pkgdir/usr/share/doc/$pkgname/" install -vDm 644 CHANGELOG.rst -t "$pkgdir/usr/share/doc/$pkgname/" install -vDm 644 README.rst -t "$pkgdir/usr/share/doc/$pkgname/" install -vDm 644 LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname/" } sha512sums=" 74c9f5553e15d7669c1361e327b601f488c676e2decf33c52df5f178f7b7f9fffaff4fc50c1dc6d1231ba6560884c137d32d5c75c990bb87e24c5de8366e77a7 py3-django-environ-0.9.0.tar.gz "