1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python2_7 python3_{4,5,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 x86"
19 dev-python/pbr[${PYTHON_USEDEP}]
20 >=dev-python/pyenchant-1.6.5[${PYTHON_USEDEP}]
21 dev-python/six[${PYTHON_USEDEP}]
22 >=dev-python/sphinx-0.6[${PYTHON_USEDEP}]
25 dev-python/setuptools[${PYTHON_USEDEP}]
26 doc? ( >=dev-python/sphinx-0.6[${PYTHON_USEDEP}] )
29 dev-python/nose[${PYTHON_USEDEP}]
34 python_compile_all() {
35 use doc && emake -C docs html
39 nosetests || die "tests failed under ${EPYTHON}"
42 python_install_all() {
43 use doc && local HTML_DOCS=( docs/build/html/. )
45 distutils-r1_python_install_all