2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2023-03-15 16:39:30 +00:00
|
|
|
, ipython
|
|
|
|
, packaging
|
|
|
|
, tornado
|
|
|
|
, jupyter-core
|
2020-04-24 23:36:52 +00:00
|
|
|
, jupyterlab_server
|
2023-03-15 16:39:30 +00:00
|
|
|
, jupyter-server
|
|
|
|
, jupyter-server-ydoc
|
2020-04-24 23:36:52 +00:00
|
|
|
, notebook
|
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
|
2023-03-15 16:39:30 +00:00
|
|
|
, pythonRelaxDepsHook
|
2021-03-23 19:22:30 +00:00
|
|
|
, nbclassic
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jupyterlab";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "3.6.3";
|
2022-01-13 20:06:32 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-04-12 12:48:02 +00:00
|
|
|
hash = "sha256-Nz6c+4py7dKUvhTxZmJWOiIM7PD7Jt56qxr5optom4I=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
jupyter-packaging
|
2023-03-15 16:39:30 +00:00
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
"jupyter-ydoc"
|
|
|
|
"jupyter-server-ydoc"
|
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-03-15 16:39:30 +00:00
|
|
|
ipython
|
|
|
|
packaging
|
|
|
|
tornado
|
|
|
|
jupyter-core
|
2022-01-13 20:06:32 +00:00
|
|
|
jupyterlab_server
|
2023-03-15 16:39:30 +00:00
|
|
|
jupyter-server
|
|
|
|
jupyter-server-ydoc
|
2022-01-13 20:06:32 +00:00
|
|
|
nbclassic
|
2023-03-15 16:39:30 +00:00
|
|
|
notebook
|
|
|
|
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-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/jupyterlab/jupyterlab/releases/tag/v${version}";
|
2022-01-13 20:06:32 +00:00
|
|
|
description = "Jupyter lab environment notebook server extension";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = with licenses; [ bsd3 ];
|
|
|
|
homepage = "https://jupyter.org/";
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ zimbatm ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|