2021-03-23 19:22:30 +00:00
|
|
|
{ lib
|
2021-05-28 09:39:13 +00:00
|
|
|
, stdenv
|
2021-03-23 19:22:30 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-tornasync
|
2021-04-26 19:14:03 +00:00
|
|
|
, argon2_cffi
|
2021-03-23 19:22:30 +00:00
|
|
|
, jinja2
|
|
|
|
, tornado
|
|
|
|
, pyzmq
|
|
|
|
, ipython_genutils
|
|
|
|
, traitlets
|
|
|
|
, jupyter_core
|
|
|
|
, jupyter_client
|
|
|
|
, nbformat
|
|
|
|
, nbconvert
|
|
|
|
, send2trash
|
|
|
|
, terminado
|
2021-08-27 14:25:00 +00:00
|
|
|
, prometheus-client
|
2021-03-23 19:22:30 +00:00
|
|
|
, anyio
|
2021-06-28 23:13:55 +00:00
|
|
|
, websocket-client
|
2021-03-23 19:22:30 +00:00
|
|
|
, requests
|
2021-09-18 10:52:07 +00:00
|
|
|
, requests-unixsocket
|
2021-03-23 19:22:30 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jupyter_server";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "1.11.0";
|
2021-03-23 19:22:30 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "sha256-irT0hKSiaY91fP8HadJ7XZkeAjKmZtVPTWraTmphMws=";
|
2021-03-23 19:22:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-04-26 19:14:03 +00:00
|
|
|
argon2_cffi
|
2021-03-23 19:22:30 +00:00
|
|
|
jinja2
|
|
|
|
tornado
|
|
|
|
pyzmq
|
|
|
|
ipython_genutils
|
|
|
|
traitlets
|
|
|
|
jupyter_core
|
|
|
|
jupyter_client
|
|
|
|
nbformat
|
|
|
|
nbconvert
|
|
|
|
send2trash
|
|
|
|
terminado
|
2021-08-27 14:25:00 +00:00
|
|
|
prometheus-client
|
2021-03-23 19:22:30 +00:00
|
|
|
anyio
|
2021-06-28 23:13:55 +00:00
|
|
|
websocket-client
|
2021-09-18 10:52:07 +00:00
|
|
|
requests-unixsocket
|
2021-03-23 19:22:30 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-tornasync
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
2021-09-18 10:52:07 +00:00
|
|
|
export PATH=$out/bin:$PATH
|
2021-03-23 19:22:30 +00:00
|
|
|
'';
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
pytestFlagsArray = [ "jupyter_server" ];
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
# disabled failing tests
|
2021-04-26 19:14:03 +00:00
|
|
|
disabledTests = [
|
|
|
|
"test_server_extension_list"
|
|
|
|
"test_list_formats"
|
|
|
|
"test_base_url"
|
|
|
|
"test_culling"
|
2021-05-28 09:39:13 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
# attempts to use trashcan, build env doesn't allow this
|
|
|
|
"test_delete"
|
2021-04-26 19:14:03 +00:00
|
|
|
];
|
2021-03-23 19:22:30 +00:00
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2021-03-23 19:22:30 +00:00
|
|
|
meta = with lib; {
|
2021-06-28 23:13:55 +00:00
|
|
|
description = "The backend—i.e. core services, APIs, and REST endpoints—to Jupyter web applications";
|
2021-03-23 19:22:30 +00:00
|
|
|
homepage = "https://github.com/jupyter-server/jupyter_server";
|
|
|
|
license = licenses.bsdOriginal;
|
|
|
|
maintainers = [ maintainers.elohmeier ];
|
|
|
|
};
|
|
|
|
}
|