backports/py3-whitenoise: now in community

This commit is contained in:
Antoine Martin 2023-11-24 13:30:54 -05:00
parent 2603fcf7d3
commit 2d96035a08
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -1,43 +0,0 @@
# Contributor: Celeste <cielesti@protonmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=py3-whitenoise
pkgver=6.5.0
pkgrel=0
pkgdesc="Radically simplified static file serving for Python web apps"
url="https://whitenoise.readthedocs.io/"
arch="noarch"
license="MIT"
depends="py3-brotli"
makedepends="
py3-gpep517
py3-setuptools
py3-wheel
"
checkdepends="
py3-django
py3-pytest
py3-requests"
subpackages="$pkgname-pyc"
source="https://github.com/evansd/whitenoise/archive/$pkgver/py3-whitenoise-$pkgver.tar.gz"
builddir="$srcdir/whitenoise-$pkgver"
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
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
2fefff9e89e05905ebacc73234a52c1c22f6c4202b354dec11177dd784f45ac6a954061659f5c3344d41a373e3fc8b911830df8a3e51326ec8a2a80d45268315 py3-whitenoise-6.5.0.tar.gz
"