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

54 lines
1,000 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, jupyterlab_server
, notebook
, pythonOlder
, jupyter-packaging
, nbclassic
}:
buildPythonPackage rec {
pname = "jupyterlab";
version = "3.5.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-UeiJRIrhlO7vjlD2P1xPSH9yj0d77+Q26XSWcvdRHb4=";
};
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; {
changelog = "https://github.com/jupyterlab/jupyterlab/releases/tag/v${version}";
description = "Jupyter lab environment notebook server extension";
license = with licenses; [ bsd3 ];
homepage = "https://jupyter.org/";
maintainers = with maintainers; [ zimbatm costrouc ];
};
}