aports/testing/py3-flask-themer/APKBUILD

40 lines
1.1 KiB
Text

# Contributor: Éloi Rivard <eloi.rivard@aquilenet.fr>
# Maintainer: Éloi Rivard <eloi.rivard@aquilenet.fr>
pkgname=py3-flask-themer
_pyname=flask-themer
pkgver=2.0.0
pkgrel=2
pkgdesc="Simple theme mechanism for Flask"
url="https://pypi.org/project/flask-themer"
arch="noarch"
license="MIT"
depends="py3-flask"
checkdepends="
py3-pytest
py3-pytest-cov
"
makedepends="py3-setuptools py3-gpep517"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/TkTech/flask-themer/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/flask-themer-$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
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
.testenv/bin/python3 -m pytest
}
package() {
gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
}
sha512sums="
334f72e5f8fb888c1cf1067e5b29b587e9c67708845d1efb00a8c4dbe30f3e7c684734b584d4c64b3516b75fdebd92b7c14355a3aa0d68f7c60fd7a983c29a14 py3-flask-themer-2.0.0.tar.gz
"