forked from mirrors/nixpkgs
98 lines
1.8 KiB
Nix
98 lines
1.8 KiB
Nix
{ 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.18.1";
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-K3L8WVvMrikiYKrYFXoOrY2ixwPsauG7ezbbrQ4mfqc=";
|
|
};
|
|
|
|
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"
|
|
# test is presumable broken in sandbox
|
|
"test_authorized_requests"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|