2023-06-14 02:12:56 +00:00
|
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
|
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
|
|
|
|
|
|
pkgname=py3-django-compression-middleware
|
|
|
|
_pyname="django-compression-middleware"
|
|
|
|
pkgver=0.5.0
|
|
|
|
pkgrel=0
|
2023-08-30 17:54:41 +00:00
|
|
|
arch="noarch !s390x !armhf" # Missing checkdepends on s390x and armhf
|
2023-06-14 02:12:56 +00:00
|
|
|
pkgdesc="Django middleware to compress responses using several algorithms."
|
|
|
|
url="https://pypi.python.org/project/$_pyname"
|
|
|
|
license="MPL-2.0"
|
2023-08-30 17:54:41 +00:00
|
|
|
depends="
|
|
|
|
py3-django
|
|
|
|
"
|
|
|
|
makedepends="
|
|
|
|
py3-setuptools
|
|
|
|
py3-gpep517
|
|
|
|
py3-installer
|
|
|
|
py3-wheel
|
|
|
|
"
|
|
|
|
checkdepends="
|
|
|
|
py3-pytest
|
|
|
|
py3-zstandard
|
|
|
|
py3-brotli
|
|
|
|
"
|
2023-06-14 02:12:56 +00:00
|
|
|
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
|
|
|
|
builddir="$srcdir"/$_pyname-$pkgver
|
2023-08-30 17:54:41 +00:00
|
|
|
subpackages="$pkgname-pyc"
|
2023-06-14 02:12:56 +00:00
|
|
|
|
|
|
|
build() {
|
2023-08-30 17:54:41 +00:00
|
|
|
gpep517 build-wheel \
|
|
|
|
--wheel-dir dist \
|
|
|
|
--output-fd 3 3>&1 >&2
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
pytest -v
|
2023-06-14 02:12:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2023-08-30 17:54:41 +00:00
|
|
|
python3 -m installer -d "$pkgdir" \
|
|
|
|
dist/*.whl
|
2023-06-14 02:12:56 +00:00
|
|
|
}
|
2023-08-30 17:54:41 +00:00
|
|
|
|
2023-06-14 02:12:56 +00:00
|
|
|
sha512sums="
|
|
|
|
070e7f19daf4811188e12b657b0dd53069b851a9c5f315d44aec87b92ccdc4d053c0a64fede2a40702963f86286b3bbbebe69722ac1b720febf93d0870d2f50e py3-django-compression-middleware-0.5.0.tar.gz
|
|
|
|
"
|