nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, python
5, notebook
6, pythonOlder
7, jupyter_server
8, pytestCheckHook
9, pytest-tornasync
10}:
11
12buildPythonPackage rec {
13 pname = "nbclassic";
14 version = "0.3.5";
15 disabled = pythonOlder "3.6";
16
17 # tests only on github
18 src = fetchFromGitHub {
19 owner = "jupyterlab";
20 repo = pname;
21 rev = "v${version}";
22 sha256 = "1d0x7nwsaw5qjw4iaylc2sxlpiq3hlg9sy3i2nh7sn3wckwl76lc";
23 };
24
25 propagatedBuildInputs = [ jupyter_server notebook ];
26
27 preCheck = ''
28 cd nbclassic
29 mv conftest.py tests
30 cd tests
31
32 export PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH
33 '';
34 checkInputs = [
35 pytestCheckHook
36 pytest-tornasync
37 ];
38
39 __darwinAllowLocalNetworking = true;
40
41 meta = with lib; {
42 description = "Jupyter lab environment notebook server extension.";
43 license = with licenses; [ bsd3 ];
44 homepage = "https://github.com/jupyterlab/nbclassic";
45 maintainers = [ maintainers.elohmeier ];
46 };
47}