1{ lib
2, buildPythonPackage
3, fetchPypi
4, jsonschema
5, pythonOlder
6, requests
7, pytestCheckHook
8, pyjson5
9, Babel
10, jupyter_server
11, openapi-core
12, pytest-tornasync
13, ruamel-yaml
14, strict-rfc3339
15}:
16
17buildPythonPackage rec {
18 pname = "jupyterlab_server";
19 version = "2.8.2";
20 disabled = pythonOlder "3.6";
21
22 src = fetchPypi {
23 inherit pname version;
24 sha256 = "26d813c8162c83d466df7d155865987dabe70aa452f9187dfb79fd88afc8fa0b";
25 };
26
27 postPatch = ''
28 sed -i "/^addopts/d" pyproject.toml
29 '';
30
31 propagatedBuildInputs = [ requests jsonschema pyjson5 Babel jupyter_server ];
32
33 checkInputs = [
34 openapi-core
35 pytestCheckHook
36 pytest-tornasync
37 ruamel-yaml
38 strict-rfc3339
39 ];
40
41 pytestFlagsArray = [ "--pyargs" "jupyterlab_server" ];
42
43 disabledTests = [
44 # AttributeError: 'SpecPath' object has no attribute 'paths'
45 "test_get_listing"
46 "test_get_settings"
47 "test_get_federated"
48 "test_listing"
49 "test_patch"
50 "test_patch_unicode"
51 "test_get_theme"
52 "test_delete"
53 "test_get_non_existant"
54 "test_get"
55 ];
56
57 __darwinAllowLocalNetworking = true;
58
59 meta = with lib; {
60 description = "JupyterLab Server";
61 homepage = "https://jupyter.org";
62 license = licenses.bsdOriginal;
63 maintainers = [ maintainers.costrouc ];
64 };
65}