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.2.0";
15 disabled = pythonOlder "3.5";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "5431d9dde96659364b7cc877693d5d21e7b80cea7ae3959ecc2b87518e5f5d8c";
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}