nixpkgs-suyu/pkgs/development/python-modules/jupyterlab/default.nix
2022-01-23 01:09:11 +01:00

52 lines
930 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, jupyterlab_server
, notebook
, pythonOlder
, jupyter-packaging
, nbclassic
}:
buildPythonPackage rec {
pname = "jupyterlab";
version = "3.2.8";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "5e4e99868c4f385372686767781408acbb9004b690b198b45597ba869802334b";
};
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 ];
};
}