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