diff options
Diffstat (limited to 'dev-python/ipykernel')
-rw-r--r-- | dev-python/ipykernel/Manifest | 2 | ||||
-rw-r--r-- | dev-python/ipykernel/ipykernel-6.25.1.ebuild | 79 |
2 files changed, 81 insertions, 0 deletions
diff --git a/dev-python/ipykernel/Manifest b/dev-python/ipykernel/Manifest index 1d1e57fd84d4..49e72145d658 100644 --- a/dev-python/ipykernel/Manifest +++ b/dev-python/ipykernel/Manifest @@ -1,5 +1,7 @@ DIST ipykernel-6.24.0.tar.gz 154452 BLAKE2B d9ff81dd2f4cc989fd8356d3f02451158dde49fd83076fd7fa42f002b095cc87f296f2deb34fdc1becbbc0391385466dc21d167ab22167a0bd6d1d561bb19427 SHA512 555ed0d6df7a4d82bb5db63718c320e1628b8d5691e831eae041ac78400be6935793b258c219815fd070cbad29e869897111add6958308db55ea03843a536393 DIST ipykernel-6.25.0.tar.gz 155658 BLAKE2B f14afaf28ec82473fa0b7c33a281ebd91fd5d93b0e00bd838046b8f591f12bca64fed8514e97ce59ba20b78940bdd7afad93ef9a59656795de97e80ff46e8339 SHA512 7cd2d3cbb2c83ca165798dc830aae096ce3391535ef604f257c4c79357ebd1c7f7e95c6952e1fb95d1a460ccb5b1bf88396f984b6462986b3e73a4453dd33b52 +DIST ipykernel-6.25.1.tar.gz 155925 BLAKE2B 973ee4b674ccc83adbff302cd967573fde17e20067366d32daba7f95db6f9ba3312d7418b8800222a2eb73b7061c65cea366ab1cdbc25e74fdbefbe50546cfc5 SHA512 501aa98a50b677037f9d81415bc56b50a1b7b056c25d6edd1eb116eed6c0fe41cff067bf88535880cdae0749eb569ba428c9389a22c77b54c2deea8f2eebf99b EBUILD ipykernel-6.24.0.ebuild 2304 BLAKE2B 25bec322b0847b92d5ed9cf89c7b4bf7300aa1c3fac4f434310c4521ff94e89067abb8a78b14b3dabc7075268e8668d82eea98efb857912e44b59f32278046bd SHA512 026bedd8f7159abf2b388326c33f598960085cfdd6a558ee0b1bc4abec1bc8693f864c3ceed0bfe20cd22ecc41aed1a472ac16e2562714b1560b189914f54c2e EBUILD ipykernel-6.25.0.ebuild 2394 BLAKE2B d6122c8c23d9ff8859bf925914c5bc58b4a49ba645a41d7d15321d45968d5d9e62ef16405c644fd5478265d88db4e8e940683e51b8e5173521a0bb6aa5baacb6 SHA512 f48427b67c8f48e3cd4b3eb2afbff1eaca9493b0b6fa5a50a5720472b9845e439855008a78ea48e0dcac8b8e40879751da4139f5739da5b2071d5ea3ba20c035 +EBUILD ipykernel-6.25.1.ebuild 2394 BLAKE2B d6122c8c23d9ff8859bf925914c5bc58b4a49ba645a41d7d15321d45968d5d9e62ef16405c644fd5478265d88db4e8e940683e51b8e5173521a0bb6aa5baacb6 SHA512 f48427b67c8f48e3cd4b3eb2afbff1eaca9493b0b6fa5a50a5720472b9845e439855008a78ea48e0dcac8b8e40879751da4139f5739da5b2071d5ea3ba20c035 MISC metadata.xml 527 BLAKE2B 4a24cb9d5b801bf94c71c47d0c90b04bc249fb41a794c7b688a5762f08545d1fcfe9e4976aa4f583ecb456458b5f6dfc394349633959444584c0abad0da4be42 SHA512 ed9f0ef12ec5de67a646783243555f1737604a84c78c57b9f7c65137cec8cbc396991411501927f92bd393daad2238c27363ecc9c115031450231c2a4fb2cbb9 diff --git a/dev-python/ipykernel/ipykernel-6.25.1.ebuild b/dev-python/ipykernel/ipykernel-6.25.1.ebuild new file mode 100644 index 000000000000..37ffb104142b --- /dev/null +++ b/dev-python/ipykernel/ipykernel-6.25.1.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{10..11} ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 pypi virtualx + +DESCRIPTION="IPython Kernel for Jupyter" +HOMEPAGE=" + https://github.com/ipython/ipykernel/ + https://pypi.org/project/ipykernel/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + >=dev-python/comm-0.1.1[${PYTHON_USEDEP}] + >=dev-python/debugpy-1.6.5[${PYTHON_USEDEP}] + >=dev-python/ipython-7.23.1[${PYTHON_USEDEP}] + >=dev-python/jupyter-client-8[${PYTHON_USEDEP}] + >=dev-python/jupyter-core-4.12[${PYTHON_USEDEP}] + >=dev-python/matplotlib-inline-0.1[${PYTHON_USEDEP}] + dev-python/nest-asyncio[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + dev-python/psutil[${PYTHON_USEDEP}] + >=dev-python/pyzmq-20[${PYTHON_USEDEP}] + >=dev-python/tornado-6.1[${PYTHON_USEDEP}] + >=dev-python/traitlets-5.4.0[${PYTHON_USEDEP}] +" +# RDEPEND seems specifically needed in BDEPEND, at least jupyter +# bug #816486 +BDEPEND=" + ${RDEPEND} + test? ( + dev-python/flaky[${PYTHON_USEDEP}] + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/pytest-timeout[${PYTHON_USEDEP}] + dev-python/ipyparallel[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + sed -i -e 's:^TIMEOUT = .*:TIMEOUT = 120:' ipykernel/tests/*.py || die + distutils-r1_src_prepare +} + +python_compile() { + distutils-r1_python_compile + # Use python3 in kernel.json configuration, bug #784764 + sed -i -e '/python3.[0-9]\+/s//python3/' \ + "${BUILD_DIR}/install${EPREFIX}/usr/share/jupyter/kernels/python3/kernel.json" || die +} + +src_test() { + local EPYTEST_DESELECT=( + # TODO + ipykernel/tests/test_debugger.py::test_attach_debug + ipykernel/tests/test_debugger.py::test_breakpoint_in_cell_with_leading_empty_lines + ipykernel/tests/test_debugger.py::test_rich_inspect_at_breakpoint + ipykernel/tests/test_debugger.py::test_rich_inspect_not_at_breakpoint + ipykernel/tests/test_debugger.py::test_set_breakpoints + ipykernel/tests/test_debugger.py::test_stop_on_breakpoint + ipykernel/tests/test_debugger.py::test_copy_to_globals + # hangs? + ipykernel/tests/test_eventloop.py::test_tk_loop + # doesn't like pyside2? + ipykernel/tests/test_eventloop.py::test_qt_enable_gui + ) + + virtx distutils-r1_src_test +} |