depot/third_party/nixpkgs/pkgs/development/python-modules/jupyterlab/default.nix

41 lines
872 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, jupyterlab_server
, notebook
, pythonOlder
, jupyter-packaging
, nbclassic
}:
buildPythonPackage rec {
pname = "jupyterlab";
version = "3.1.17";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "7e829cedce4fec676fb9d83850805df9e563b3ca7f20f70bd2ea177a462b7a78";
};
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 ];
};
}