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";
|
2021-10-08 15:17:17 +00:00
|
|
|
version = "3.1.17";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-10-08 15:17:17 +00:00
|
|
|
sha256 = "7e829cedce4fec676fb9d83850805df9e563b3ca7f20f70bd2ea177a462b7a78";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-04-12 18:23:04 +00:00
|
|
|
nativeBuildInputs = [ jupyter-packaging ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ jupyterlab_server notebook nbclassic ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
makeWrapperArgs = [
|
|
|
|
"--set" "JUPYTERLAB_DIR" "$out/share/jupyter/lab"
|
|
|
|
];
|
|
|
|
|
|
|
|
# Depends on npm
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-04-12 18:23:04 +00:00
|
|
|
pythonImportsCheck = [ "jupyterlab" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Jupyter lab environment notebook server extension.";
|
|
|
|
license = with licenses; [ bsd3 ];
|
|
|
|
homepage = "https://jupyter.org/";
|
|
|
|
maintainers = with maintainers; [ zimbatm costrouc ];
|
|
|
|
};
|
|
|
|
}
|