1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python{2_7,3_5,3_6} )
8 inherit distutils-r1 vcs-snapshot
10 DESCRIPTION="Python test doubles"
11 HOMEPAGE="https://bitbucket.org/DavidVilla/python-doublex"
12 SRC_URI="https://bitbucket.org/DavidVilla/python-${PN}/get/v${PV}.tar.gz -> ${P}.tar.gz"
18 RESTRICT="!test? ( test )"
20 CDEPEND="dev-python/pyhamcrest[${PYTHON_USEDEP}]"
23 doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
25 dev-python/nose[${PYTHON_USEDEP}]
26 $(python_gen_cond_dep 'dev-python/unittest2[${PYTHON_USEDEP}]' 'python2*')
31 python_compile_all() {
32 use doc && emake -C docs
39 python_install_all() {
40 use doc && local HTML_DOCS=( docs/_build/html/. )
42 distutils-r1_python_install_all
44 rm "${ED}"/usr/README.rst || die "Couldn't remove spurious README.rst"