1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, notebook
5, pythonOlder
6, jupyter_server
7, pytestCheckHook
8, pytest-tornasync
9}:
10
11buildPythonPackage rec {
12 pname = "nbclassic";
13 version = "0.3.1";
14 disabled = pythonOlder "3.6";
15
16 # tests only on github
17 src = fetchFromGitHub {
18 owner = "jupyterlab";
19 repo = pname;
20 rev = version;
21 sha256 = "sha256-gx086w/qYB02UFEDly+0mUsV5BvAVAuhqih4wev2p/w=";
22 };
23
24 propagatedBuildInputs = [ jupyter_server notebook ];
25
26 checkInputs = [
27 pytestCheckHook
28 pytest-tornasync
29 ];
30
31 __darwinAllowLocalNetworking = true;
32
33 meta = with lib; {
34 description = "Jupyter lab environment notebook server extension.";
35 license = with licenses; [ bsd3 ];
36 homepage = "https://github.com/jupyterlab/nbclassic";
37 maintainers = [ maintainers.elohmeier ];
38 };
39}