1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_{6,7} )
7 PYTHON_REQ_USE="threads(+)"
11 DESCRIPTION="IPython Kernel for Jupyter"
12 HOMEPAGE="https://github.com/ipython/ipykernel"
13 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
17 KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
19 RESTRICT="!test? ( test )"
22 >=dev-python/ipython-6[${PYTHON_USEDEP}]
23 dev-python/jupyter_client[${PYTHON_USEDEP}]
24 >=dev-python/traitlets-4.1.0[${PYTHON_USEDEP}]
25 >=www-servers/tornado-4.0[${PYTHON_USEDEP}]
28 dev-python/setuptools[${PYTHON_USEDEP}]
30 dev-python/nose[${PYTHON_USEDEP}]
31 dev-python/nose_warnings_filters[${PYTHON_USEDEP}]
36 distutils-r1_python_install
38 # bug 628222, specify python 2 or 3.
39 sed -e "/language/!s:python:${EPYTHON%.*}:" \
40 -i "${ED}"usr/share/jupyter/kernels/${EPYTHON%.*}/kernel.json || die
44 nosetests --verbose ipykernel || die