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
|
2021-03-23 19:22:30 +00:00
|
|
|
, jupyter-packaging
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jupyterlab";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "4.0.6";
|
2023-08-10 07:59:29 +00:00
|
|
|
format = "pyproject";
|
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;
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-bEOuWmof0v36/LNFQASVi95tp2Mxq7RM/8b55Daxm6E=";
|
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
|
|
|
};
|
|
|
|
}
|