blob: 793a42f19c7f63f188e4ed8dd56d45bb023ab3ed (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..11} )
DISTUTILS_USE_PEP517=jupyter
inherit distutils-r1
DESCRIPTION="JupyterLab computational environment"
HOMEPAGE="
https://jupyter.org/
https://github.com/jupyterlab/jupyterlab/
https://pypi.org/project/jupyterlab/
"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD MIT GPL-3 Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
dev-python/ipython[${PYTHON_USEDEP}]
dev-python/packaging[${PYTHON_USEDEP}]
dev-python/jupyter_core[${PYTHON_USEDEP}]
>=dev-python/jupyterlab_server-2.19[${PYTHON_USEDEP}]
>=dev-python/jupyter_server-1.16[${PYTHON_USEDEP}]
~dev-python/jupyter_ydoc-0.2.2[${PYTHON_USEDEP}]
>=dev-python/jupyter_server_ydoc-0.6.0[${PYTHON_USEDEP}]
<dev-python/jupyter_server_ydoc-0.7.0[${PYTHON_USEDEP}]
>=dev-python/nbclassic-0.2[${PYTHON_USEDEP}]
<dev-python/notebook-7[${PYTHON_USEDEP}]
>=dev-python/jinja-2.1[${PYTHON_USEDEP}]
>=dev-python/tornado-6.2[${PYTHON_USEDEP}]
dev-python/tomli[${PYTHON_USEDEP}]
net-libs/nodejs
"
BDEPEND="
test? (
dev-python/check-manifest[${PYTHON_USEDEP}]
dev-python/ipykernel[${PYTHON_USEDEP}]
dev-python/jupyterlab_server[${PYTHON_USEDEP}]
dev-python/openapi-core[${PYTHON_USEDEP}]
dev-python/openapi-spec-validator[${PYTHON_USEDEP}]
dev-python/pytest-console-scripts[${PYTHON_USEDEP}]
dev-python/pytest_jupyter[${PYTHON_USEDEP}]
dev-python/pytest-tornasync[${PYTHON_USEDEP}]
dev-python/pytest-timeout[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/ruamel-yaml[${PYTHON_USEDEP}]
dev-python/requests-cache[${PYTHON_USEDEP}]
dev-python/strict-rfc3339[${PYTHON_USEDEP}]
dev-python/virtualenv[${PYTHON_USEDEP}]
)
"
EPYTEST_DESELECT=(
# These tests call npm and want internet
jupyterlab/tests/test_jupyterlab.py::TestExtension::test_uninstall_core_extension
jupyterlab/tests/test_jupyterlab.py::TestExtension::test_install_and_uninstall_pinned_folder
jupyterlab/tests/test_jupyterlab.py::TestExtension::test_install_and_uninstall_pinned
jupyterlab/tests/test_jupyterlab.py::TestExtension::test_build_custom_minimal_core_config
jupyterlab/tests/test_jupyterlab.py::TestExtension::test_build_custom
jupyterlab/tests/test_jupyterlab.py::TestExtension::test_build_check
jupyterlab/tests/test_jupyterlab.py::TestExtension::test_build
jupyterlab/tests/test_build_api.py::TestBuildAPI::test_clear
jupyterlab/tests/test_build_api.py::TestBuildAPI::test_build
)
EPYTEST_IGNORE=(
jupyterlab/tests/test_announcements.py
)
distutils_enable_tests pytest
# TODO: package sphinx_copybutton
#distutils_enable_sphinx docs/source dev-python/sphinx-rtd-theme dev-python/myst-parser
python_install_all() {
distutils-r1_python_install_all
mv "${ED}/usr/etc" "${ED}/etc" || die
}
|