1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( pypy3 python3_{6,7,8} )
12 DESCRIPTION="i18n and l10n support for Flask based on Babel and pytz"
13 HOMEPAGE="https://pythonhosted.org/Flask-Babel/"
14 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
18 KEYWORDS="amd64 ~arm arm64 x86"
20 RESTRICT="!test? ( test )"
23 dev-python/Babel[${PYTHON_USEDEP}]
24 dev-python/flask[${PYTHON_USEDEP}]
25 dev-python/pytz[${PYTHON_USEDEP}]
26 >=dev-python/jinja-2.5[${PYTHON_USEDEP}]
29 dev-python/setuptools[${PYTHON_USEDEP}]
31 dev-python/flask-sphinx-themes[${PYTHON_USEDEP}]
32 dev-python/sphinx[${PYTHON_USEDEP}]
36 dev-python/nose[${PYTHON_USEDEP}]
40 S="${WORKDIR}/${MY_P}"
42 python_prepare_all() {
43 sed -i -e "s/, 'sphinx.ext.intersphinx'//" docs/conf.py || die
44 distutils-r1_python_prepare_all
47 python_compile_all() {
49 sphinx-build docs docs/_build/html || die
50 HTML_DOCS=( docs/_build/html/. )
55 nosetests -v || die "Tests failed under ${EPYTHON}"