33 lines
1 KiB
Text
33 lines
1 KiB
Text
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
|
|
pkgname=py3-whitenoise
|
|
_pyname="whitenoise"
|
|
pkgver=6.4.0
|
|
pkgrel=0
|
|
arch="!armv7 noarch"
|
|
pkgdesc="Radically simplified static file serving for WSGI applications"
|
|
url="https://pypi.python.org/project/$_pyname"
|
|
license="MIT"
|
|
depends="python3"
|
|
options="!check" # Failing tests
|
|
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() {
|
|
python -m build -nw
|
|
}
|
|
|
|
check() {
|
|
DJANGO_SETTINGS_MODULE=tests.django_settings PYTHONPATH="$PWD"/src pytest
|
|
}
|
|
|
|
package() {
|
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
99605759c9731453f209b3bf9d0f9de6ea767d83070053a36dc45d434420c116e32ecbf2b50734ce2a0374279c36d9cf2390c6b84f2abbeafaae57ef746b5cab py3-whitenoise-6.4.0.tar.gz
|
|
"
|