ayaports/user/py3-whitenoise/APKBUILD

33 lines
968 B
Text
Raw Normal View History

2023-01-10 19:12:28 +00:00
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
2021-11-30 21:44:44 +00:00
2023-01-10 19:12:28 +00:00
pkgname=py3-whitenoise
_pyname="whitenoise"
2021-11-30 21:44:44 +00:00
pkgver=5.3.0
pkgrel=0
2023-01-10 19:12:28 +00:00
arch="noarch"
pkgdesc="Radically simplified static file serving for WSGI applications"
url="https://pypi.python.org/project/$_pyname"
2021-11-30 21:44:44 +00:00
license="MIT"
2023-01-10 19:12:28 +00:00
depends="python3"
options="!check" # Failing tests
makedepends="py3-setuptools py3-brotli py3-django py3-pytest py3-requests"
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
2021-11-30 21:44:44 +00:00
builddir="$srcdir"/$_pyname-$pkgver
build() {
2023-01-10 19:12:28 +00:00
python3 setup.py build
2021-11-30 21:44:44 +00:00
}
check() {
2023-01-10 19:12:28 +00:00
DJANGO_SETTINGS_MODULE=tests.django_settings pytest
2021-11-30 21:44:44 +00:00
}
package() {
2023-01-10 19:12:28 +00:00
python3 setup.py install --root="$pkgdir"/ --optimize=1 --skip-build
2021-11-30 21:44:44 +00:00
}
sha512sums="
cd42c4258ea541ef31e7b5034da9b01085a91c93d2b7ffd954b9a52d0b1b0601f69935c59e9c1cfc4228e7e8e4fae1030eb0553d16eb9560afbf79964c8f0b1b py3-whitenoise-5.3.0.tar.gz
"