1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 python3_6 )
8 inherit distutils-r1 vcs-snapshot
10 DESCRIPTION="Module for decorators, wrappers and monkey patching"
11 HOMEPAGE="https://github.com/GrahamDumpleton/wrapt"
12 SRC_URI="https://github.com/GrahamDumpleton/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
16 KEYWORDS="alpha amd64 arm ~arm64 ia64 ppc ppc64 sparc x86 ~amd64-linux"
18 RESTRICT="!test? ( test )"
21 test? ( dev-python/pytest[${PYTHON_USEDEP}] )
23 dev-python/sphinx[${PYTHON_USEDEP}]
24 dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
29 python_compile_all() {
30 use doc && emake -C docs html
34 local WRAPT_EXTENSIONS=true
36 distutils-r1_python_compile
40 py.test -vv || die "tests failed under ${EPYTHON}"
43 python_install_all() {
44 use doc && local HTML_DOCS=( docs/_build/html/. )
46 distutils-r1_python_install_all