1{
2 lib,
3 argon2-cffi,
4 buildPythonPackage,
5 fetchPypi,
6 ipykernel,
7 ipython-genutils,
8 jinja2,
9 jupyter-client,
10 jupyter-core,
11 jupyter-server,
12 nbconvert,
13 nbformat,
14 nest-asyncio,
15 notebook-shim,
16 prometheus-client,
17 pytest-jupyter,
18 pytest-tornasync,
19 pytestCheckHook,
20 pythonOlder,
21 pyzmq,
22 send2trash,
23 terminado,
24 tornado,
25 traitlets,
26}:
27
28buildPythonPackage rec {
29 pname = "nbclassic";
30 version = "1.0.0";
31 format = "setuptools";
32
33 disabled = pythonOlder "3.7";
34
35 src = fetchPypi {
36 inherit pname version;
37 hash = "sha256-CuEesjGUVdgFWWvzIDNs2pVUtB2Zq5o8Mb+BgL/6MOM=";
38 };
39
40 propagatedBuildInputs = [
41 argon2-cffi
42 ipykernel
43 ipython-genutils
44 jinja2
45 jupyter-client
46 jupyter-core
47 jupyter-server
48 nbconvert
49 nbformat
50 nest-asyncio
51 notebook-shim
52 prometheus-client
53 pyzmq
54 send2trash
55 terminado
56 tornado
57 traitlets
58 ];
59
60 nativeCheckInputs = [
61 pytest-jupyter
62 pytest-tornasync
63 pytestCheckHook
64 ];
65
66 pythonImportsCheck = [ "nbclassic" ];
67
68 __darwinAllowLocalNetworking = true;
69
70 meta = with lib; {
71 description = "Jupyter lab environment notebook server extension";
72 homepage = "https://github.com/jupyter/nbclassic";
73 license = with licenses; [ bsd3 ];
74 maintainers = with maintainers; [ elohmeier ];
75 };
76}