1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 PYTHON_COMPAT=( python2_7 python3_3 python3_4 )
9 inherit distutils-r1 vcs-snapshot
11 DESCRIPTION="Python test doubles"
12 HOMEPAGE="https://bitbucket.org/DavidVilla/python-doublex"
13 SRC_URI="https://bitbucket.org/DavidVilla/python-${PN}/get/v${PV}.tar.gz -> ${P}.tar.gz"
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"