1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, notebook
5, jsonschema
6, pythonOlder
7, requests
8, pytest
9, pyjson5
10}:
11
12buildPythonPackage rec {
13 pname = "jupyterlab_server";
14 version = "1.0.6";
15 disabled = pythonOlder "3.5";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "d0977527bfce6f47c782cb6bf79d2c949ebe3f22ac695fa000b730c671445dad";
20 };
21
22 checkInputs = [ requests pytest ];
23 propagatedBuildInputs = [ notebook jsonschema pyjson5 ];
24
25 # test_listing test fails
26 # this is a new package and not all tests pass
27 doCheck = false;
28
29 checkPhase = ''
30 pytest
31 '';
32
33 meta = with stdenv.lib; {
34 description = "JupyterLab Server";
35 homepage = https://jupyter.org;
36 license = licenses.bsdOriginal;
37 maintainers = [ maintainers.costrouc ];
38 };
39}