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";
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "3.2.9";
|
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;
|
2022-02-20 05:27:41 +00:00
|
|
|
sha256 = "sha256-Zd3DTl2hp2RgbjjE9wz51KwcBRgoE88Kst/qMSxwESQ=";
|
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; {
|
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 ];
|
|
|
|
};
|
|
|
|
}
|