1{ lib
2, buildPythonPackage
3, fetchPypi
4, jupyterlab_server
5, notebook
6, pythonOlder
7, jupyter-packaging
8, nbclassic
9}:
10
11buildPythonPackage rec {
12 pname = "jupyterlab";
13 version = "3.5.0";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchPypi {
19 inherit pname version;
20 sha256 = "sha256-4CVWyOobOGljxLRk5GGK7hU8VBawerSBQlyBegMzI6I=";
21 };
22
23 nativeBuildInputs = [
24 jupyter-packaging
25 ];
26
27 propagatedBuildInputs = [
28 jupyterlab_server
29 notebook
30 nbclassic
31 ];
32
33 makeWrapperArgs = [
34 "--set"
35 "JUPYTERLAB_DIR"
36 "$out/share/jupyter/lab"
37 ];
38
39 # Depends on npm
40 doCheck = false;
41
42 pythonImportsCheck = [
43 "jupyterlab"
44 ];
45
46 meta = with lib; {
47 description = "Jupyter lab environment notebook server extension";
48 license = with licenses; [ bsd3 ];
49 homepage = "https://jupyter.org/";
50 maintainers = with maintainers; [ zimbatm costrouc ];
51 };
52}