summaryrefslogtreecommitdiff
path: root/dev-python/metakernel/metakernel-1.0.6.ebuild
blob: 1f458f53c490d7d387c89316dd327ff24b34a90c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517=poetry-core
PYTHON_COMPAT=( python3_{13..14} )

inherit distutils-r1 pypi

DESCRIPTION="Metakernel for Jupyter"
HOMEPAGE="
	https://github.com/Calysto/metakernel/
	https://pypi.org/project/metakernel/
"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"

RDEPEND="
	>=dev-python/comm-0.1.3[${PYTHON_USEDEP}]
	>=dev-python/ipykernel-6.22.0[${PYTHON_USEDEP}]
	>=dev-python/jupyter-core-5.3.1[${PYTHON_USEDEP}]
	>=dev-python/jedi-0.19.0[${PYTHON_USEDEP}]
	>=dev-python/pexpect-4.9.0[${PYTHON_USEDEP}]
"

BDEPEND="
	test? (
		>=dev-python/ipython-9.16[${PYTHON_USEDEP}]
		>=dev-python/ipywidgets-8.0.5[${PYTHON_USEDEP}]
		>=dev-python/jupyter-kernel-test-0.6.0[${PYTHON_USEDEP}]
		>=dev-python/requests-2.29.0[${PYTHON_USEDEP}]
	)
"

EPYTEST_PLUGINS=( pytest-timeout )
distutils_enable_tests pytest

python_test() {
	local EPYTEST_DESELECT=(
		# fragile
		tests/test_parser.py::test_path_completions
		# requires starting ipycluster
		tests/magics/test_parallel_magic.py::test_parallel_magic
	)

	epytest
}