diff options
Diffstat (limited to 'main/py3-mako/APKBUILD')
-rw-r--r-- | main/py3-mako/APKBUILD | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/main/py3-mako/APKBUILD b/main/py3-mako/APKBUILD index 23eaca3e0b0..e98ab795de5 100644 --- a/main/py3-mako/APKBUILD +++ b/main/py3-mako/APKBUILD @@ -2,28 +2,41 @@ # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> pkgname=py3-mako _pkgname=Mako -pkgver=1.1.0 -pkgrel=1 +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" +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() { - cd "$builddir" - python3 setup.py 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() { - cd "$builddir" - python3 setup.py install --prefix=/usr --root="$pkgdir" + python3 -m installer -d "$pkgdir" .dist/*.whl } -sha512sums="acb0f53a22ae152c359c38391f508eca706efcc52916a6e87f2702517dd48b5ffd26eef0f2f9172046f1abd0aea1f47328354ff622938886aa00f950a261e8d4 Mako-1.1.0.tar.gz" +sha512sums=" +acde7b4be929fdd97f2a3fc133966ffc44b5706dbdd3f1af0fee16620b3c82d12b1a67b7292a229084ebb4f0c392e8db1b2844112baa3c6a5fd2be8777b04897 Mako-1.3.2.tar.gz +" |