mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-11 14:26:38 +02:00
40 lines
1,000 B
Text
40 lines
1,000 B
Text
# Maintainer: Marian Buschsieweke <marian.buschsieweke@posteo.net>
|
|
pkgname=py3-pybars3
|
|
pkgver=0.9.7
|
|
pkgrel=6
|
|
pkgdesc="implementation of the handlebars.js template language for Python 3"
|
|
url="https://github.com/wbond/pybars3"
|
|
arch="noarch"
|
|
license="LGPL-3.0-only"
|
|
depends="
|
|
python3
|
|
py3-pymeta3
|
|
"
|
|
makedepends="
|
|
py3-setuptools
|
|
py3-gpep517
|
|
"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/p/pybars3/pybars3-$pkgver.tar.gz"
|
|
builddir="$srcdir/pybars3-$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 tests.py
|
|
}
|
|
|
|
package() {
|
|
gpep517 install-wheel --destdir "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
7aff86c0703e3827909f3603d7f35026ee39ce74d9c5ff1beb18a71b0a839c3aa407402f8d9c1aca9eb69af33750db0477881826e72135fc26a7274b0f1f538b pybars3-0.9.7.tar.gz
|
|
"
|