mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 11:19:50 +03:00
fails for python 3.12+ https://github.com/joke2k/django-environ/pull/355#issuecomment-2869169918
46 lines
1.3 KiB
Text
46 lines
1.3 KiB
Text
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
pkgname=py3-django-environ
|
|
_pyname=django-environ
|
|
pkgver=0.12.0
|
|
_gittag=176e812d8624f6937ba3dd276a0032929d87eb69
|
|
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/django-environ"
|
|
license="MIT"
|
|
depends="
|
|
py3-django
|
|
"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
"
|
|
checkdepends="
|
|
py3-pytest
|
|
"
|
|
source="$pkgname-$_gittag.tar.gz::https://github.com/joke2k/django-environ/archive/$_gittag.tar.gz"
|
|
builddir="$srcdir"/$_pyname-$_gittag
|
|
subpackages="$pkgname-pyc"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
.testenv/bin/python3 -m pytest -v -k 'not postgres_cluster' # 3.12/3.13 urllib fail
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d="$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
cf79437eb836c5dc197f5b0443f2291cd5fff791f46b91e2365df0046781a22b1d3183190a8f3d9d063fe44f4189a8a31d360e3b86789b4c08ed9c727875ba33 py3-django-environ-176e812d8624f6937ba3dd276a0032929d87eb69.tar.gz
|
|
"
|