From fab36a01dbdbeb4c8d5085a4aecc68a0587447c4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 30 May 2020 09:05:10 +0200 Subject: [PATCH] dev-python/mako: Bump to 1.1.3 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/mako/Manifest | 1 + dev-python/mako/mako-1.1.3.ebuild | 53 +++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 dev-python/mako/mako-1.1.3.ebuild diff --git a/dev-python/mako/Manifest b/dev-python/mako/Manifest index c76427f79846..89784204d327 100644 --- a/dev-python/mako/Manifest +++ b/dev-python/mako/Manifest @@ -1 +1,2 @@ DIST Mako-1.1.2.tar.gz 469385 BLAKE2B 45c2f162a788c649f00938f9f9cb7a31f89ad92e0bb72a41d71287553d3f30d80394ca54002f669db0763b54570126c01400c7d08e04d79b0a002a2f45e698e7 SHA512 73b7a32ceb6e39dc2491734546c83a752bf0c8bc7546bb236801c02a5bccc5b59f2440333a328ff747eee936612dd12279f08d27d76f065fd589081d232692a8 +DIST Mako-1.1.3.tar.gz 477440 BLAKE2B ffa148815d64f1fbfac0291e6afdbcf967d7445e13f364e1e2a492330ad1cd71a788255776e07bbec95877f65440073ec873b035d6f6fc1293a299b0478524a3 SHA512 a9b94fa34a61e7794b6e4549fa0bada6ff84dfb0d9edb8d5c7f9b95d12184fa4499f42303cfee720b576a9f7e986a57d91ad3aeb26c9f93154dbc08fb2975952 diff --git a/dev-python/mako/mako-1.1.3.ebuild b/dev-python/mako/mako-1.1.3.ebuild new file mode 100644 index 000000000000..41ee455ad58f --- /dev/null +++ b/dev-python/mako/mako-1.1.3.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( pypy3 python{2_7,3_{6,7,8,9}} ) + +inherit distutils-r1 eutils + +MY_P=${P^} +DESCRIPTION="A Python templating language" +HOMEPAGE="https://www.makotemplates.org/ https://pypi.org/project/Mako/" +SRC_URI="mirror://pypi/${MY_P:0:1}/${PN^}/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +IUSE="doc" + +RDEPEND=">=dev-python/markupsafe-0.9.2[${PYTHON_USEDEP}]" +BDEPEND=" + test? ( + $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' -2) + ) +" + +PATCHES=( + "${FILESDIR}"/mako-1.1.1-pypy3-test.patch +) + +distutils_enable_tests pytest + +src_prepare() { + # seriously? + sed -i -e 's:from nose import:from unittest import:' \ + test/__init__.py || die + + distutils-r1_src_prepare +} + +python_install_all() { + rm -r doc/build || die + + use doc && local HTML_DOCS=( doc/. ) + distutils-r1_python_install_all +} + +pkg_postinst() { + elog "Optional dependencies:" + optfeature "caching support" dev-python/beaker +} -- 2.26.2