summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-12-04 08:28:11 +0100
committerMichał Górny <mgorny@gentoo.org>2024-12-04 08:28:11 +0100
commit3116cd5e14c05cdd8f9db9a7878fb7294155e840 (patch)
treeb59ed2d69b910909bba234d5bf99386131770892 /dev-python/mako
parentdev-python/pyzotero: Remove old (diff)
downloadgentoo-3116cd5e14c05cdd8f9db9a7878fb7294155e840.tar.gz
gentoo-3116cd5e14c05cdd8f9db9a7878fb7294155e840.tar.bz2
gentoo-3116cd5e14c05cdd8f9db9a7878fb7294155e840.zip
dev-python/mako: Bump to 1.3.7
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/mako')
-rw-r--r--dev-python/mako/Manifest1
-rw-r--r--dev-python/mako/mako-1.3.7.ebuild54
2 files changed, 55 insertions, 0 deletions
diff --git a/dev-python/mako/Manifest b/dev-python/mako/Manifest
index c0388276e6ba..c44eceeda6de 100644
--- a/dev-python/mako/Manifest
+++ b/dev-python/mako/Manifest
@@ -1 +1,2 @@
DIST mako-1.3.6.tar.gz 390206 BLAKE2B 9ead8381e738033d06950a537ecd04b8f83909027430f5d246a0dac13f3e7ad874353d3945d2d1f5ff188d5379db051a1092c68b84e0f6f4d93a7fc8ed715b4d SHA512 ad7a05b7cb4a330495ba5842d578565356d19912fee20e2d894a6e5a7812197944943d947eb15a539ef4a11d2bafde29fc7b007767228bd8e40f154d53631073
+DIST mako-1.3.7.tar.gz 392052 BLAKE2B 06e5c850f77c85fd5e11a66707f0eb3d318dcc5f5080f6a8f4292270a0195f17a032ecc87cbe418e2364e6ebe74e29ca2b6acbf9cdf0bc2b4992981acc85168c SHA512 b52bcaa688091ae0fb8195e16bec6b4075c1424073cb0aef9cfdd7a92a27386f492181aeeb6c1b30aea57a9c9c4c32dc909133e9ef8e1de858d24c2d816c776c
diff --git a/dev-python/mako/mako-1.3.7.ebuild b/dev-python/mako/mako-1.3.7.ebuild
new file mode 100644
index 000000000000..2200eeeb567b
--- /dev/null
+++ b/dev-python/mako/mako-1.3.7.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYPI_PN=${PN^}
+PYTHON_COMPAT=( pypy3 python3_{10..13} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="A Python templating language"
+HOMEPAGE="
+ https://www.makotemplates.org/
+ https://github.com/sqlalchemy/mako/
+ https://pypi.org/project/Mako/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
+IUSE="doc"
+
+RDEPEND="
+ >=dev-python/markupsafe-0.9.2[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ test? (
+ dev-python/babel[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+
+python_test() {
+ local EPYTEST_DESELECT=()
+ case ${EPYTHON} in
+ pypy3)
+ EPYTEST_DESELECT+=(
+ test/test_exceptions.py::ExceptionsTest::test_alternating_file_names
+ )
+ ;;
+ esac
+
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ epytest
+}
+
+python_install_all() {
+ rm -r doc/build || die
+
+ use doc && local HTML_DOCS=( doc/. )
+ distutils-r1_python_install_all
+}