2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, jupyterlab_server
|
|
|
|
, notebook
|
|
|
|
, pythonOlder
|
2021-03-23 19:22:30 +00:00
|
|
|
, jupyter-packaging
|
|
|
|
, nbclassic
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jupyterlab";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "3.5.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-02-02 18:25:31 +00:00
|
|
|
hash = "sha256-UeiJRIrhlO7vjlD2P1xPSH9yj0d77+Q26XSWcvdRHb4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
jupyter-packaging
|
|
|
|
];
|
2021-04-12 18:23:04 +00:00
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
jupyterlab_server
|
|
|
|
notebook
|
|
|
|
nbclassic
|
|
|
|
];
|
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/";
|
|
|
|
maintainers = with maintainers; [ zimbatm costrouc ];
|
|
|
|
};
|
|
|
|
}
|