1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_6 )
10 DESCRIPTION="Jupyter metapackage. Install all the Jupyter components in one go"
11 HOMEPAGE="https://jupyter.org"
13 mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz
14 https://patch-diff.githubusercontent.com/raw/jupyter/jupyter/pull/198.patch -> ${P}-file-colision.patch
19 KEYWORDS="~amd64 ~x86"
23 dev-python/notebook[${PYTHON_USEDEP}]
24 dev-python/qtconsole[${PYTHON_USEDEP}]
25 dev-python/jupyter_console[${PYTHON_USEDEP}]
26 dev-python/nbconvert[${PYTHON_USEDEP}]
27 dev-python/ipykernel[${PYTHON_USEDEP}]
28 dev-python/ipywidgets[${PYTHON_USEDEP}]"
29 DEPEND="doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
30 PDEPEND=">=dev-python/jupyter_core-4.2.0[${PYTHON_USEDEP}]"
32 PATCHES=( "${DISTDIR}"/${P}-file-colision.patch )
34 python_prepare_all() {
35 # Prevent un-needed download during build
37 sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die
40 distutils-r1_python_prepare_all
43 python_compile_all() {
44 use doc && emake -C docs html
47 python_install_all() {
48 use doc && HTML_DOCS=( "${S}"/docs/build/html/. )
49 distutils-r1_python_install_all