mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-10 06:57:08 -08:00
62 lines
1.7 KiB
Bash
62 lines
1.7 KiB
Bash
# Copyright 1999-2022 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
PYTHON_COMPAT=( python3_{8..10} )
|
|
DISTUTILS_USE_PEP517=hatchling
|
|
|
|
inherit distutils-r1
|
|
|
|
DESCRIPTION="Server components for JupyterLab and JupyterLab like applications"
|
|
HOMEPAGE="
|
|
https://jupyter.org/
|
|
https://github.com/jupyterlab/jupyterlab_server/
|
|
https://pypi.org/project/jupyterlab-server/
|
|
"
|
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
|
|
LICENSE="BSD"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
RDEPEND="
|
|
dev-python/Babel[${PYTHON_USEDEP}]
|
|
>=dev-python/importlib_metadata-3.6[${PYTHON_USEDEP}]
|
|
>=dev-python/jinja-3.0.3[${PYTHON_USEDEP}]
|
|
dev-python/json5[${PYTHON_USEDEP}]
|
|
>=dev-python/jsonschema-3.0.1[${PYTHON_USEDEP}]
|
|
dev-python/packaging[${PYTHON_USEDEP}]
|
|
dev-python/requests[${PYTHON_USEDEP}]
|
|
>=dev-python/jupyter_server-1.8[${PYTHON_USEDEP}]
|
|
<dev-python/jupyter_server-2[${PYTHON_USEDEP}]
|
|
"
|
|
|
|
BDEPEND="
|
|
test? (
|
|
dev-python/ipykernel[${PYTHON_USEDEP}]
|
|
dev-python/jupyter_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-tornasync[${PYTHON_USEDEP}]
|
|
dev-python/pytest-timeout[${PYTHON_USEDEP}]
|
|
dev-python/ruamel-yaml[${PYTHON_USEDEP}]
|
|
dev-python/strict-rfc3339[${PYTHON_USEDEP}]
|
|
)
|
|
"
|
|
|
|
distutils_enable_tests pytest
|
|
# TODO: package autodoc_traits
|
|
#distutils_enable_sphinx docs/source dev-python/pydata-sphinx-theme dev-python/myst_parser
|
|
|
|
python_prepare_all() {
|
|
# This seems to not work for us, can only find english
|
|
rm tests/test_translation_api.py || die
|
|
|
|
# Do not depend on pytest-cov
|
|
sed -i -e '/addopts/d' pyproject.toml || die
|
|
|
|
distutils-r1_python_prepare_all
|
|
}
|