mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-19 05:36:38 +02:00
42 lines
1.2 KiB
Text
42 lines
1.2 KiB
Text
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
|
pkgname=py3-mako
|
|
_pkgname=Mako
|
|
pkgver=1.3.10
|
|
pkgrel=0
|
|
pkgdesc="Python3 fast templating language"
|
|
url="https://www.makotemplates.org/"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3 py3-markupsafe"
|
|
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
|
checkdepends="py3-babel py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/M/Mako/mako-$pkgver.tar.gz"
|
|
builddir="$srcdir"/mako-$pkgver
|
|
|
|
replaces="py-mako" # Backwards compatibility
|
|
provides="py-mako=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
# secfixes:
|
|
# 1.2.2-r0:
|
|
# - CVE-2022-40023
|
|
|
|
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
|
|
# unpackaged py3-lingua
|
|
.testenv/bin/python3 -m pytest --ignore test/ext/test_linguaplugin.py
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" .dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
33fcf08b35b00ae33dcfb4b9dac4adcc7e0a9d8bdfdf0bc92f6aa13fbc12031e9fc46c910d92803ffa7b31e4ee58209f11cc186e04f9b08bad7ec4bcd309d554 mako-1.3.10.tar.gz
|
|
"
|