1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python2_7 python3_6 )
9 DESCRIPTION="Sphinx spelling extension"
10 HOMEPAGE="https://bitbucket.org/dhellmann/sphinxcontrib-spelling"
11 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
15 KEYWORDS="amd64 arm ~arm64 x86"
17 RESTRICT="!test? ( test )"
20 dev-python/pbr[${PYTHON_USEDEP}]
21 >=dev-python/pyenchant-1.6.5[${PYTHON_USEDEP}]
22 dev-python/six[${PYTHON_USEDEP}]
23 >=dev-python/sphinx-0.6[${PYTHON_USEDEP}]
26 dev-python/setuptools[${PYTHON_USEDEP}]
27 doc? ( >=dev-python/sphinx-0.6[${PYTHON_USEDEP}] )
30 dev-python/nose[${PYTHON_USEDEP}]
35 python_compile_all() {
36 use doc && emake -C docs html
40 nosetests || die "tests failed under ${EPYTHON}"
43 python_install_all() {
44 use doc && local HTML_DOCS=( docs/build/html/. )
46 distutils-r1_python_install_all