pythonPackages.jupyter_server: init at 1.4.1
This commit is contained in:
parent
05d45e9fbb
commit
d9728515e6
75
pkgs/development/python-modules/jupyter_server/default.nix
Normal file
75
pkgs/development/python-modules/jupyter_server/default.nix
Normal file
@ -0,0 +1,75 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, pytestCheckHook
|
||||
, pytest-tornasync
|
||||
, jinja2
|
||||
, tornado
|
||||
, pyzmq
|
||||
, ipython_genutils
|
||||
, traitlets
|
||||
, jupyter_core
|
||||
, jupyter_client
|
||||
, nbformat
|
||||
, nbconvert
|
||||
, send2trash
|
||||
, terminado
|
||||
, prometheus_client
|
||||
, anyio
|
||||
, requests
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "jupyter_server";
|
||||
version = "1.4.1";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-sBJvI39nlTPuxGJEz8ZtYeOh+OwPrS1HNS+hnT51Tkc=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "anyio>=2.0.2" "anyio"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
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
|
||||
disabledTests = [ "test_server_extension_list" "test_list_formats" "test_base_url" ];
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
@ -3544,6 +3544,8 @@ in {
|
||||
|
||||
jupyter_core = callPackage ../development/python-modules/jupyter_core { };
|
||||
|
||||
jupyter_server = callPackage ../development/python-modules/jupyter_server { };
|
||||
|
||||
jupyterhub = callPackage ../development/python-modules/jupyterhub { };
|
||||
|
||||
jupyterhub-ldapauthenticator = callPackage ../development/python-modules/jupyterhub-ldapauthenticator { };
|
||||
|
Loading…
x
Reference in New Issue
Block a user