2018-11-03 22:14:36 -04:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, jupyterlab_server
|
|
|
|
, notebook
|
|
|
|
, pythonOlder
|
2020-12-29 09:13:17 +01:00
|
|
|
, jupyter-packaging
|
|
|
|
, nbclassic
|
2018-11-03 22:14:36 -04:00
|
|
|
}:
|
|
|
|
|
2018-04-07 19:00:09 +01:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jupyterlab";
|
2022-12-27 05:22:18 -08:00
|
|
|
version = "3.5.2";
|
2022-01-08 11:49:51 +01:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2018-04-07 19:00:09 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-12-27 05:22:18 -08:00
|
|
|
sha256 = "sha256-EKwJQhX/uHLd/74pgr8cA5p5/swybhkefMXv2E8zHa0=";
|
2018-04-07 19:00:09 +01:00
|
|
|
};
|
|
|
|
|
2022-01-08 11:49:51 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
jupyter-packaging
|
|
|
|
];
|
2021-04-08 21:53:54 +02:00
|
|
|
|
2022-01-08 11:49:51 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
jupyterlab_server
|
|
|
|
notebook
|
|
|
|
nbclassic
|
|
|
|
];
|
2018-04-07 19:00:09 +01:00
|
|
|
|
2018-04-09 15:17:42 +01:00
|
|
|
makeWrapperArgs = [
|
2022-01-08 11:49:51 +01:00
|
|
|
"--set"
|
|
|
|
"JUPYTERLAB_DIR"
|
|
|
|
"$out/share/jupyter/lab"
|
2018-04-09 15:17:42 +01:00
|
|
|
];
|
|
|
|
|
2018-04-07 22:14:08 +01:00
|
|
|
# Depends on npm
|
2018-04-07 19:00:09 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2022-01-08 11:49:51 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"jupyterlab"
|
|
|
|
];
|
2021-04-08 21:53:54 +02:00
|
|
|
|
2018-04-07 19:00:09 +01:00
|
|
|
meta = with lib; {
|
2022-01-08 11:49:51 +01:00
|
|
|
description = "Jupyter lab environment notebook server extension";
|
2018-04-07 19:00:09 +01:00
|
|
|
license = with licenses; [ bsd3 ];
|
2019-04-22 10:14:28 +02:00
|
|
|
homepage = "https://jupyter.org/";
|
2018-08-08 04:16:13 -04:00
|
|
|
maintainers = with maintainers; [ zimbatm costrouc ];
|
2018-04-07 19:00:09 +01:00
|
|
|
};
|
|
|
|
}
|