2023-09-10 15:16:43 +00:00

39 lines
1.2 KiB
Plaintext

# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-flask-htmlmin
_pkgorig=Flask-HTMLmin
pkgver=2.2.1
pkgrel=3
pkgdesc="Minify flask text/html mime type responses"
url="https://github.com/hamidfzm/Flask-HTMLmin"
arch="noarch"
license="BSD-3-Clause"
depends="python3 cssmin htmlmin py3-flask"
makedepends="py3-gpep517 py3-setuptools py3-wheel py3-pytest-xdist"
# temporarily moved to makedepends for riscv64
#checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/hamidfzm/Flask-HTMLmin/archive/refs/tags/v$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 -n auto
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
34d5c9e2393901b32ab43c4333d87d75b489a410af2fdb019c180d0cb7bac01074616125486b49ef577782311a394bde6444ce311d5ab4f2ae2852a3ea92f4cd py3-flask-htmlmin-2.2.1.tar.gz
"