user/py3-whitenoise: upgrade to 6.4.0

This commit is contained in:
Antoine Martin 2023-04-01 09:19:16 -04:00
parent 676948da54
commit d215bf7b9d
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -3,7 +3,7 @@
pkgname=py3-whitenoise
_pyname="whitenoise"
pkgver=5.3.0
pkgver=6.4.0
pkgrel=0
arch="noarch"
pkgdesc="Radically simplified static file serving for WSGI applications"
@ -11,22 +11,23 @@ url="https://pypi.python.org/project/$_pyname"
license="MIT"
depends="python3"
options="!check" # Failing tests
makedepends="py3-setuptools py3-brotli py3-django py3-pytest py3-requests"
makedepends="py3-installer py3-build py3-setuptools py3-wheel"
checkdepends="py3-pytest py3-django py3-requests py3-brotli"
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
build() {
python3 setup.py build
python -m build -nw
}
check() {
DJANGO_SETTINGS_MODULE=tests.django_settings pytest
DJANGO_SETTINGS_MODULE=tests.django_settings PYTHONPATH="$PWD"/src pytest
}
package() {
python3 setup.py install --root="$pkgdir"/ --optimize=1 --skip-build
python -m installer --destdir="$pkgdir" dist/*.whl
}
sha512sums="
cd42c4258ea541ef31e7b5034da9b01085a91c93d2b7ffd954b9a52d0b1b0601f69935c59e9c1cfc4228e7e8e4fae1030eb0553d16eb9560afbf79964c8f0b1b py3-whitenoise-5.3.0.tar.gz
99605759c9731453f209b3bf9d0f9de6ea767d83070053a36dc45d434420c116e32ecbf2b50734ce2a0374279c36d9cf2390c6b84f2abbeafaae57ef746b5cab py3-whitenoise-6.4.0.tar.gz
"