mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
dev-python/cheetah3-3.2.6: Version bump, add py39
Copyright: Sony Interactive Entertainment Inc. Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
This commit is contained in:
committed by
Patrick McLean
parent
960f8f4901
commit
cbd4bc2e9e
@@ -1 +1,2 @@
|
||||
DIST cheetah3-3.2.4.tar.gz 315044 BLAKE2B 5cb36364f424acf87593b3f18b5709d1a161dd3fb9bc1f4cfb6fe7c22d2515c852d5d7d0215692274ffe5437267e3232fcfae3d76c592cf66d8927fabdf37953 SHA512 64fbe95fe8d5f3185168ba780e106a46caa0656272235168df603eff50dd6e476eed041658a1e11ae12ee10d148a001c32a23677a1ee6da5b6d43e20e4d1e36e
|
||||
DIST cheetah3-3.2.6.tar.gz 2481158 BLAKE2B cb8ad192ae9caf0d1284294b323cf4a918cd2fc951bae25867d69a3dd7933728056b76fbf52a22d34f290056a96cce7d9ccbeb2404f2f0bb782f8db8b7453e47 SHA512 abf74def695018a79cb1364f60e402e7e0095a4d2f069decfbddf42501d865b70451ebc7b52abc67aa23e57276d7a3b8c2894a9571876e15db43cd1358f74d31
|
||||
|
||||
41
dev-python/cheetah3/cheetah3-3.2.6.ebuild
Normal file
41
dev-python/cheetah3/cheetah3-3.2.6.ebuild
Normal file
@@ -0,0 +1,41 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
PYTHON_COMPAT=( python3_{6..9} )
|
||||
DISTUTILS_USE_SETUPTOOLS=bdepend
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python-powered template engine and code generator"
|
||||
HOMEPAGE="http://www.cheetahtemplate.org/ https://pypi.org/project/Cheetah3/"
|
||||
SRC_URI="https://github.com/CheetahTemplate3/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/markdown[${PYTHON_USEDEP}]
|
||||
!dev-python/cheetah
|
||||
"
|
||||
BDEPEND="${RDEPEND}"
|
||||
|
||||
DOCS=( ANNOUNCE.rst README.rst TODO )
|
||||
|
||||
python_prepare_all() {
|
||||
# Disable broken tests.
|
||||
sed \
|
||||
-e "/Unicode/d" \
|
||||
-e "s/if not sys.platform.startswith('java'):/if False:/" \
|
||||
-e "/results =/a\\ sys.exit(not results.wasSuccessful())" \
|
||||
-i Cheetah/Tests/Test.py || die "sed failed"
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
cp -r "${S}/Cheetah/Tests/ImportHooksTemplates" \
|
||||
"${BUILD_DIR}/lib/Cheetah/Tests/ImportHooksTemplates" || die
|
||||
|
||||
"${EPYTHON}" Cheetah/Tests/Test.py || die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
Reference in New Issue
Block a user