diff options
Diffstat (limited to 'main/py3-mako/APKBUILD')
-rw-r--r-- | main/py3-mako/APKBUILD | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/main/py3-mako/APKBUILD b/main/py3-mako/APKBUILD index 9e6766856b6..e98ab795de5 100644 --- a/main/py3-mako/APKBUILD +++ b/main/py3-mako/APKBUILD @@ -2,35 +2,41 @@ # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> pkgname=py3-mako _pkgname=Mako -pkgver=1.1.5 -pkgrel=0 +pkgver=1.3.2 +pkgrel=2 pkgdesc="Python3 fast templating language" url="https://www.makotemplates.org/" arch="noarch" license="MIT" depends="python3 py3-markupsafe" -makedepends="py3-setuptools" -checkdepends="py3-pytest" +makedepends="py3-gpep517 py3-setuptools py3-wheel" +checkdepends="py3-babel py3-pytest" +subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver replaces="py-mako" # Backwards compatibility provides="py-mako=$pkgver-r$pkgrel" # Backwards compatibility +# secfixes: +# 1.2.2-r0: +# - CVE-2022-40023 + build() { - python3 setup.py build + gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2 } check() { - # Failure related to py3-packaging and not to mako itself - python3 -m pytest \ - --deselect test/test_util.py::UtilTest::test_load_plugin_failure + 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 setup.py install --prefix=/usr --root="$pkgdir" + python3 -m installer -d "$pkgdir" .dist/*.whl } sha512sums=" -3eff75f1a94f8e01131ce118df73be1ade79306562ae2ca68079eb2b64ef82c48c09cfd7ed6eda42819bf50c70941cf4115f8918b4d8187f7489717c7d4a423b Mako-1.1.5.tar.gz +acde7b4be929fdd97f2a3fc133966ffc44b5706dbdd3f1af0fee16620b3c82d12b1a67b7292a229084ebb4f0c392e8db1b2844112baa3c6a5fd2be8777b04897 Mako-1.3.2.tar.gz " |