ayaports/testing/py3-django-environ/APKBUILD

43 lines
1,008 B
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-environ
pkgname="py3-$_pyname"
pkgver=0.11.2
2022-12-27 20:40:33 +00:00
pkgrel=0
2023-08-11 19:49:05 +00:00
arch="noarch"
2022-12-27 20:40:33 +00:00
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
"
2022-12-27 20:40:33 +00:00
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
subpackages="$pkgname-pyc"
2022-12-27 20:40:33 +00:00
build() {
2023-01-12 18:48:03 +00:00
python3 -m build --wheel --no-isolation
2022-12-27 20:40:33 +00:00
}
check() {
pytest -v
2022-12-27 20:40:33 +00:00
}
package() {
python3 -m installer -d="$pkgdir" \
dist/*.whl
2022-12-27 20:40:33 +00:00
}
sha512sums="
d024858514b2a6edd99a7a2f1ae26e9e7cc007b1454a1c3f2cd2ae061b4e961f16c4acc8c77ee6449e4b11b3d98c72aae849e337339cb5e275b85077a02b59d0 py3-django-environ-0.11.2.tar.gz
2022-12-27 20:40:33 +00:00
"