2010-12-14 23:29:05 -06:00
|
|
|
# Contributor: Matt Smith <mcs@darkregion.net>
|
2013-03-11 08:49:49 +00:00
|
|
|
# Maintainer: Matt Smith <mcs@darkregion.net>
|
2019-10-23 10:42:09 +00:00
|
|
|
pkgname=py3-jinja2
|
2024-05-19 01:01:36 +02:00
|
|
|
_pkgname=jinja2
|
2025-03-12 22:58:32 +01:00
|
|
|
pkgver=3.1.6
|
2024-05-19 01:01:36 +02:00
|
|
|
pkgrel=0
|
2013-03-11 08:49:49 +00:00
|
|
|
pkgdesc="A small but fast and easy to use stand-alone python template engine"
|
2019-08-27 02:32:45 -03:00
|
|
|
url="https://palletsprojects.com/p/jinja/"
|
2010-12-16 11:18:25 -06:00
|
|
|
arch="noarch"
|
2019-08-27 02:32:45 -03:00
|
|
|
license="BSD-3-Clause"
|
2019-10-23 10:42:09 +00:00
|
|
|
depends="py3-markupsafe"
|
|
|
|
checkdepends="py3-pytest"
|
2024-05-19 01:01:36 +02:00
|
|
|
makedepends="python3-dev py3-gpep517 py3-flit-core py3-wheel"
|
2023-04-18 16:39:19 +00:00
|
|
|
subpackages="$pkgname-pyc $pkgname-doc"
|
2016-07-06 19:40:49 +02:00
|
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
2016-09-25 16:08:11 +02:00
|
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
2010-12-14 23:29:05 -06:00
|
|
|
|
2021-03-29 03:40:39 +02:00
|
|
|
# secfixes:
|
2025-03-12 22:58:32 +01:00
|
|
|
# 3.1.6-r0:
|
|
|
|
# - CVE-2025-27516 GHSA-cpwx-vrp4-4pq7
|
2024-12-24 01:14:09 +01:00
|
|
|
# 3.1.5-r0:
|
|
|
|
# - CVE-2024-56326 GHSA-q2x7-8rv6-6q7h
|
|
|
|
# - CVE-2024-56201 GHSA-gmj6-6f8f-6699
|
2024-05-19 01:01:36 +02:00
|
|
|
# 3.1.4-r0:
|
|
|
|
# - CVE-2024-34064 GHSA-h75v-3vvj-5mfj
|
|
|
|
# 3.1.3-r0:
|
|
|
|
# - CVE-2024-22195 GHSA-h5c8-rqwp-cp95
|
2021-03-29 03:40:39 +02:00
|
|
|
# 1.11.3-r0:
|
|
|
|
# - CVE-2020-28493
|
|
|
|
|
2010-12-14 23:29:05 -06:00
|
|
|
build() {
|
2023-10-27 00:10:17 +00:00
|
|
|
gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2
|
2010-12-14 23:29:05 -06:00
|
|
|
}
|
|
|
|
|
2018-10-23 18:39:29 +03:00
|
|
|
check() {
|
2023-10-27 00:10:17 +00:00
|
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
2024-04-19 19:17:24 +02:00
|
|
|
# test_elif_deep fails on s390x
|
2024-12-24 01:14:09 +01:00
|
|
|
# async tests depend on community/py3-trio
|
2024-04-19 19:17:24 +02:00
|
|
|
.testenv/bin/python3 -m pytest -W ignore::DeprecationWarning \
|
2024-12-24 01:14:09 +01:00
|
|
|
-k "not test_elif_deep" \
|
|
|
|
--ignore-glob="tests/test_async*.py"
|
2018-10-23 18:39:29 +03:00
|
|
|
}
|
|
|
|
|
2010-12-14 23:29:05 -06:00
|
|
|
package() {
|
2023-10-27 00:10:17 +00:00
|
|
|
python3 -m installer -d "$pkgdir" .dist/*.whl
|
2010-12-14 23:29:05 -06:00
|
|
|
|
2019-10-23 10:42:09 +00:00
|
|
|
local docdir="$pkgdir/usr/share/doc/$pkgname"
|
2010-12-14 23:29:05 -06:00
|
|
|
# Note: The documentation in the docs directory needs to be generated
|
|
|
|
# by py-sphinx, however, this package (py-jinja2) is a dependency of
|
|
|
|
# Sphinx itself!
|
2016-09-25 16:08:11 +02:00
|
|
|
mkdir -p "$docdir"
|
2024-05-19 01:01:36 +02:00
|
|
|
cp -R docs "$docdir"/
|
2016-09-25 16:08:11 +02:00
|
|
|
|
2024-05-19 01:01:36 +02:00
|
|
|
install -m 644 -D LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
|
2016-09-25 16:08:11 +02:00
|
|
|
}
|
2010-12-14 23:29:05 -06:00
|
|
|
|
2021-05-17 06:33:27 -04:00
|
|
|
sha512sums="
|
2025-03-12 22:58:32 +01:00
|
|
|
bddd5e142f1462426c57b2efafdfafdfc6b66de257668707940896feae71eabdf19e0b6e34ef49b965153baf9b1eb59bb5a97349bb287ea0921dd2a751e967ab jinja2-3.1.6.tar.gz
|
2021-05-17 06:33:27 -04:00
|
|
|
"
|