1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 babel,
6 ipykernel,
7 ipython-genutils,
8 jupyter-packaging,
9 jupyter-server,
10 nest-asyncio,
11 notebook-shim,
12 pytest-jupyter,
13 pytest-tornasync,
14 pytestCheckHook,
15 pythonOlder,
16}:
17
18buildPythonPackage rec {
19 pname = "nbclassic";
20 version = "1.2.0";
21 pyproject = true;
22
23 disabled = pythonOlder "3.7";
24
25 src = fetchPypi {
26 inherit pname version;
27 hash = "sha256-c27FBIOlRIWXHbITvpIH405R/BRMeDQ2JbaZF0I2RLo=";
28 };
29
30 build-system = [
31 babel
32 jupyter-packaging
33 jupyter-server
34 ];
35
36 dependencies = [
37 ipykernel
38 ipython-genutils
39 nest-asyncio
40 notebook-shim
41 ];
42
43 nativeCheckInputs = [
44 pytest-jupyter
45 pytest-tornasync
46 pytestCheckHook
47 ];
48
49 pythonImportsCheck = [ "nbclassic" ];
50
51 __darwinAllowLocalNetworking = true;
52
53 meta = with lib; {
54 description = "Jupyter lab environment notebook server extension";
55 homepage = "https://github.com/jupyter/nbclassic";
56 license = with licenses; [ bsd3 ];
57 };
58}