2018-11-04 02:14:36 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, jupyterlab_server
|
|
|
|
, notebook
|
|
|
|
, pythonOlder
|
2019-04-20 02:42:08 +01:00
|
|
|
, fetchpatch
|
2018-11-04 02:14:36 +00:00
|
|
|
}:
|
|
|
|
|
2018-04-07 19:00:09 +01:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jupyterlab";
|
2019-05-02 07:01:35 +01:00
|
|
|
version = "0.35.6";
|
2018-11-04 02:14:36 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
2018-04-07 19:00:09 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-05-02 07:01:35 +01:00
|
|
|
sha256 = "2ec845845d51221e39d0d753884a19342c953f39febf3148a68631bf57ecb774";
|
2018-04-07 19:00:09 +01:00
|
|
|
};
|
|
|
|
|
2018-11-04 02:14:36 +00:00
|
|
|
propagatedBuildInputs = [ jupyterlab_server notebook ];
|
2018-04-07 19:00:09 +01:00
|
|
|
|
2018-04-09 15:17:42 +01:00
|
|
|
makeWrapperArgs = [
|
|
|
|
"--set" "JUPYTERLAB_DIR" "$out/share/jupyter/lab"
|
|
|
|
];
|
|
|
|
|
2019-04-20 02:42:08 +01:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "bump-jupyterlab_server-version";
|
|
|
|
url = https://github.com/jupyterlab/jupyterlab/commit/3b8d451e6f9a4c609e60cde5fbb3cc84aae79951.patch;
|
|
|
|
sha256 = "08vv6rp1k5fbmvj4v9x1d9zb6ymm9pv8ml80j7p45r9fay34rndf";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-04-07 22:14:08 +01:00
|
|
|
# Depends on npm
|
2018-04-07 19:00:09 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Jupyter lab environment notebook server extension.";
|
|
|
|
license = with licenses; [ bsd3 ];
|
2019-04-22 09:14:28 +01:00
|
|
|
homepage = "https://jupyter.org/";
|
2018-08-08 09:16:13 +01:00
|
|
|
maintainers = with maintainers; [ zimbatm costrouc ];
|
2018-04-07 19:00:09 +01:00
|
|
|
};
|
|
|
|
}
|