1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 python3_{4,5} )
10 DESCRIPTION="Core common functionality of Jupyter projects"
11 HOMEPAGE="http://jupyter.org"
12 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
16 KEYWORDS="~amd64 ~arm64 ~x86"
20 dev-python/traitlets[${PYTHON_USEDEP}]
23 !!<dev-python/jupyter-1.0.0-r1
24 doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
26 dev-python/pytest[${PYTHON_USEDEP}]
27 $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7)
28 >=dev-python/ipython-4.0.1[${PYTHON_USEDEP}]
32 python_prepare_all() {
33 # Prevent un-needed download during build
35 sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/conf.py || die
38 distutils-r1_python_prepare_all
41 python_compile_all() {
42 use doc && emake -C docs html
46 distutils_install_for_testing
47 cd "${TEST_DIR}"/lib || die
48 py.test jupyter_core || die
51 python_install_all() {
52 use doc && HTML_DOCS=( docs/_build/html/. )
53 distutils-r1_python_install_all