summaryrefslogtreecommitdiff
path: root/dev-python/ipykernel/ipykernel-6.6.0.ebuild
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2021-12-15 01:45:29 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2021-12-15 01:45:29 +0000
commit29290b68cd7ef520c6c75223dc66bdcf59df66a9 (patch)
tree0dc9f891c952391284d2529b536bd111821468d4 /dev-python/ipykernel/ipykernel-6.6.0.ebuild
parentadbe6f3a634ba64cba32a869a6ac2713fdd69ebf (diff)
downloadbaldeagleos-repo-29290b68cd7ef520c6c75223dc66bdcf59df66a9.tar.gz
baldeagleos-repo-29290b68cd7ef520c6c75223dc66bdcf59df66a9.tar.xz
baldeagleos-repo-29290b68cd7ef520c6c75223dc66bdcf59df66a9.zip
Adding metadata
Diffstat (limited to 'dev-python/ipykernel/ipykernel-6.6.0.ebuild')
-rw-r--r--dev-python/ipykernel/ipykernel-6.6.0.ebuild61
1 files changed, 61 insertions, 0 deletions
diff --git a/dev-python/ipykernel/ipykernel-6.6.0.ebuild b/dev-python/ipykernel/ipykernel-6.6.0.ebuild
new file mode 100644
index 000000000000..22cc2b1e41c6
--- /dev/null
+++ b/dev-python/ipykernel/ipykernel-6.6.0.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{6,7,8,9,10} )
+PYTHON_REQ_USE="threads(+)"
+inherit distutils-r1
+
+DESCRIPTION="IPython Kernel for Jupyter"
+HOMEPAGE="https://github.com/ipython/ipykernel"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+
+RDEPEND="
+ $(python_gen_cond_dep '
+ <dev-python/importlib_metadata-5.0.0[${PYTHON_USEDEP}]
+ >=dev-python/argcomplete-1.12.3[${PYTHON_USEDEP}]
+ ' python3_8 pypy3)
+ >=dev-python/debugpy-1.0.0[${PYTHON_USEDEP}]
+ <dev-python/debugpy-2.0[${PYTHON_USEDEP}]
+ >=dev-python/ipython-7.23.1[${PYTHON_USEDEP}]
+ >=dev-python/traitlets-5.1.0[${PYTHON_USEDEP}]
+ <dev-python/traitlets-6.0[${PYTHON_USEDEP}]
+ <dev-python/jupyter_client-8.0[${PYTHON_USEDEP}]
+ >=www-servers/tornado-4.2[${PYTHON_USEDEP}]
+ <www-servers/tornado-7.0[${PYTHON_USEDEP}]
+ >=dev-python/matplotlib-inline-0.1.0[${PYTHON_USEDEP}]
+ <dev-python/matplotlib-inline-0.2.0[${PYTHON_USEDEP}]
+"
+# RDEPEND seems specifically needed in BDEPEND, at least jupyter
+# bug #816486
+BDEPEND="
+ ${RDEPEND}
+ test? (
+ dev-python/flaky[${PYTHON_USEDEP}]
+ dev-python/nose[${PYTHON_USEDEP}]
+ dev-python/nose_warnings_filters[${PYTHON_USEDEP}]
+ dev-python/ipyparallel[${PYTHON_USEDEP}]
+ )"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-6.5.0-drop-pytest-cov.patch
+)
+
+distutils_enable_tests pytest
+
+src_prepare() {
+ sed -i -e 's:^TIMEOUT = .*:TIMEOUT = 120:' ipykernel/tests/*.py || die
+ distutils-r1_src_prepare
+}
+
+src_install() {
+ distutils-r1_src_install
+ # Use python3 in kernel.json configuration, bug #784764
+ sed -i -e '/python3.[0-9]\+/s//python3/' \
+ "${ED}"/usr/share/jupyter/kernels/python3/kernel.json || die
+}