nixpkgs/pkgs/development/python-modules/jupyterlab/default.nix
2021-06-22 13:42:32 +02:00

40 lines
872 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, jupyterlab_server
, notebook
, pythonOlder
, jupyter-packaging
, nbclassic
}:
buildPythonPackage rec {
pname = "jupyterlab";
version = "3.0.16";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "7ad4fbe1f6d38255869410fd151a8b15692a663ca97c0a8146b3f5c40e275c23";
};
nativeBuildInputs = [ jupyter-packaging ];
propagatedBuildInputs = [ jupyterlab_server notebook nbclassic ];
makeWrapperArgs = [
"--set" "JUPYTERLAB_DIR" "$out/share/jupyter/lab"
];
# Depends on npm
doCheck = false;
pythonImportsCheck = [ "jupyterlab" ];
meta = with lib; {
description = "Jupyter lab environment notebook server extension.";
license = with licenses; [ bsd3 ];
homepage = "https://jupyter.org/";
maintainers = with maintainers; [ zimbatm costrouc ];
};
}