mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
|
|
# Maintainer:
|
|
pkgname=py3-flask-compress
|
|
_pkgorig=flask_compress
|
|
pkgver=1.15
|
|
pkgrel=0
|
|
pkgdesc="Compress responses of your Flask application"
|
|
url="https://github.com/colour-science/flask-compress"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3 py3-brotli py3-flask py3-zstandard"
|
|
makedepends="py3-gpep517 py3-setuptools_scm py3-wheel"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/f/flask_compress/flask_compress-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgorig-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
746fd7fb5efa2098d1aae179823b333ca083e6bb6945400d6a5401df0799a76733a67f8b38f952c59002c07705d7a7b0c6b43fbd291a368f98a363f3121dcd1f py3-flask-compress-1.15.tar.gz
|
|
"
|