1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 python3_3 python3_4 )
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"
19 CDEPEND="dev-python/pyhamcrest[${PYTHON_USEDEP}]"
22 doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
24 dev-python/nose[${PYTHON_USEDEP}]
25 $(python_gen_cond_dep 'dev-python/unittest2[${PYTHON_USEDEP}]' 'python2*')
30 python_compile_all() {
31 use doc && emake -C docs
35 esetup.py test || die "Tests failed under ${EPYTHON}"
38 python_install_all() {
39 use doc && local HTML_DOCS=( docs/_build/html/. )
41 distutils-r1_python_install_all
43 rm "${D}"/usr/README.rst || die "Couldn't remove spurious README.rst"