ayaports/user/py3-whitenoise/APKBUILD

34 lines
1 KiB
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"
2023-04-01 13:19:16 +00:00
pkgver=6.4.0
2021-11-30 21:44:44 +00:00
pkgrel=0
2023-05-07 22:41:06 +00:00
arch="!armv7 noarch"
2023-01-10 19:12:28 +00:00
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
2023-04-01 13:19:16 +00:00
makedepends="py3-installer py3-build py3-setuptools py3-wheel"
checkdepends="py3-pytest py3-django py3-requests py3-brotli"
2023-01-10 19:12:28 +00:00
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-04-01 13:19:16 +00:00
python -m build -nw
2021-11-30 21:44:44 +00:00
}
check() {
2023-04-01 13:19:16 +00:00
DJANGO_SETTINGS_MODULE=tests.django_settings PYTHONPATH="$PWD"/src pytest
2021-11-30 21:44:44 +00:00
}
package() {
2023-04-01 13:19:16 +00:00
python -m installer --destdir="$pkgdir" dist/*.whl
2021-11-30 21:44:44 +00:00
}
2023-04-01 13:19:16 +00:00
2021-11-30 21:44:44 +00:00
sha512sums="
2023-04-01 13:19:16 +00:00
99605759c9731453f209b3bf9d0f9de6ea767d83070053a36dc45d434420c116e32ecbf2b50734ce2a0374279c36d9cf2390c6b84f2abbeafaae57ef746b5cab py3-whitenoise-6.4.0.tar.gz
2021-11-30 21:44:44 +00:00
"