My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/jupyter_server/default.nix

88 lines
1.6 KiB

{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, pythonOlder
, pytestCheckHook
, pytest-tornasync
, argon2_cffi
, 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.5.0";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "ff127713a57ab7aa7b23f7df9b082951cc4b05d8d64cc0949d01ea02ac24c70c";
};
postPatch = ''
substituteInPlace setup.py \
--replace "anyio>=2.0.2" "anyio"
'';
propagatedBuildInputs = [
argon2_cffi
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"
"test_culling"
] ++ lib.optionals stdenv.isDarwin [
# attempts to use trashcan, build env doesn't allow this
"test_delete"
];
__darwinAllowLocalNetworking = true;
meta = with lib; {
description = "The backendi.e. core services, APIs, and REST endpointsto Jupyter web applications.";
homepage = "https://github.com/jupyter-server/jupyter_server";
license = licenses.bsdOriginal;
maintainers = [ maintainers.elohmeier ];
};
}