2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2023-08-10 07:59:29 +00:00
|
|
|
, hatch-jupyter-builder
|
|
|
|
, hatchling
|
|
|
|
, async-lru
|
2023-03-15 16:39:30 +00:00
|
|
|
, packaging
|
|
|
|
, tornado
|
2023-08-10 07:59:29 +00:00
|
|
|
, ipykernel
|
2023-03-15 16:39:30 +00:00
|
|
|
, jupyter-core
|
2023-08-10 07:59:29 +00:00
|
|
|
, jupyter-lsp
|
2023-11-16 04:20:00 +00:00
|
|
|
, jupyterlab-server
|
2023-03-15 16:39:30 +00:00
|
|
|
, jupyter-server
|
2023-08-10 07:59:29 +00:00
|
|
|
, notebook-shim
|
2023-03-15 16:39:30 +00:00
|
|
|
, jinja2
|
|
|
|
, tomli
|
2020-04-24 23:36:52 +00:00
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jupyterlab";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "4.0.12";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
2022-01-13 20:06:32 +00:00
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-ll2S76gqU47XDMs5aNmqu6eIhA2oguE9ewYXgM3tw7c=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
nativeBuildInputs = [
|
2023-08-10 07:59:29 +00:00
|
|
|
hatch-jupyter-builder
|
|
|
|
hatchling
|
2022-01-13 20:06:32 +00:00
|
|
|
];
|
2021-04-12 18:23:04 +00:00
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
propagatedBuildInputs = [
|
2023-08-10 07:59:29 +00:00
|
|
|
async-lru
|
2023-03-15 16:39:30 +00:00
|
|
|
packaging
|
|
|
|
tornado
|
2023-08-10 07:59:29 +00:00
|
|
|
ipykernel
|
2023-03-15 16:39:30 +00:00
|
|
|
jupyter-core
|
2023-08-10 07:59:29 +00:00
|
|
|
jupyter-lsp
|
2023-11-16 04:20:00 +00:00
|
|
|
jupyterlab-server
|
2023-03-15 16:39:30 +00:00
|
|
|
jupyter-server
|
2023-08-10 07:59:29 +00:00
|
|
|
notebook-shim
|
2023-03-15 16:39:30 +00:00
|
|
|
jinja2
|
|
|
|
] ++ lib.optionals (pythonOlder "3.11") [
|
|
|
|
tomli
|
2022-01-13 20:06:32 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
makeWrapperArgs = [
|
2022-01-13 20:06:32 +00:00
|
|
|
"--set"
|
|
|
|
"JUPYTERLAB_DIR"
|
|
|
|
"$out/share/jupyter/lab"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Depends on npm
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"jupyterlab"
|
|
|
|
];
|
2021-04-12 18:23:04 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2023-08-10 07:59:29 +00:00
|
|
|
changelog = "https://github.com/jupyterlab/jupyterlab/blob/v${version}/CHANGELOG.md";
|
2022-01-13 20:06:32 +00:00
|
|
|
description = "Jupyter lab environment notebook server extension";
|
2023-08-10 07:59:29 +00:00
|
|
|
license = licenses.bsd3;
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://jupyter.org/";
|
2023-08-10 07:59:29 +00:00
|
|
|
maintainers = lib.teams.jupyter.members;
|
2023-11-16 04:20:00 +00:00
|
|
|
mainProgram = "jupyter-lab";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|