1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, pythonOlder
, pandoc
, pytestCheckHook
, pytest-console-scripts
, pytest-timeout
, pytest-tornasync
, argon2-cffi
, jinja2
, tornado
, pyzmq
, ipykernel
, ipython_genutils
, traitlets
, jupyter_core
, jupyter-client
, nbformat
, nbconvert
, send2trash
, terminado
, prometheus-client
, anyio
, websocket-client
, requests
, requests-unixsocket
}:
buildPythonPackage rec {
pname = "jupyter_server";
version = "1.17.1";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "a36781656645ae17b12819a49ace377c045bf633823b3e4cd4b0c88c01e7711b";
};
propagatedBuildInputs = [
argon2-cffi
jinja2
tornado
pyzmq
ipython_genutils
traitlets
jupyter_core
jupyter-client
nbformat
nbconvert
send2trash
terminado
prometheus-client
anyio
websocket-client
requests-unixsocket
];
checkInputs = [
ipykernel
pandoc
pytestCheckHook
pytest-console-scripts
pytest-timeout
pytest-tornasync
requests
];
preCheck = ''
export HOME=$(mktemp -d)
export PATH=$out/bin:$PATH
'';
disabledTests = [
"test_cull_idle"
] ++ lib.optionals stdenv.isDarwin [
# attempts to use trashcan, build env doesn't allow this
"test_delete"
];
disabledTestPaths = [
"tests/services/kernels/test_api.py"
"tests/services/sessions/test_api.py"
];
__darwinAllowLocalNetworking = true;
meta = with lib; {
description = "The backend—i.e. core services, APIs, and REST endpoints—to Jupyter web applications";
homepage = "https://github.com/jupyter-server/jupyter_server";
license = licenses.bsdOriginal;
maintainers = [ maintainers.elohmeier ];
};
}
|