2021-03-23 19:22:30 +00:00
|
|
|
{ lib
|
|
|
|
, 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
|
|
|
|
, prometheus_client
|
|
|
|
, anyio
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jupyter_server";
|
2021-04-26 19:14:03 +00:00
|
|
|
version = "1.5.0";
|
2021-03-23 19:22:30 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-04-26 19:14:03 +00:00
|
|
|
sha256 = "ff127713a57ab7aa7b23f7df9b082951cc4b05d8d64cc0949d01ea02ac24c70c";
|
2021-03-23 19:22:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "anyio>=2.0.2" "anyio"
|
|
|
|
'';
|
|
|
|
|
|
|
|
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
|
|
|
|
prometheus_client
|
|
|
|
anyio
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-tornasync
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
|
|
|
|
|
|
|
pytestFlagsArray = [ "jupyter_server/tests/" ];
|
|
|
|
|
|
|
|
# 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-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|