2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, jsonschema
|
|
|
|
, pythonOlder
|
|
|
|
, requests
|
2021-03-23 19:22:30 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, pyjson5
|
2021-03-23 19:22:30 +00:00
|
|
|
, Babel
|
|
|
|
, jupyter_server
|
|
|
|
, pytest-tornasync
|
|
|
|
, pytestcov
|
|
|
|
, strict-rfc3339
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jupyterlab_server";
|
2021-03-23 19:22:30 +00:00
|
|
|
version = "2.3.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-23 19:22:30 +00:00
|
|
|
sha256 = "sha256-56AkWqPeI6GAPeLv9AHkykWUU42fWYBhNPMEGabYtqM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-03-23 19:22:30 +00:00
|
|
|
propagatedBuildInputs = [ requests jsonschema pyjson5 Babel jupyter_server ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-23 19:22:30 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-tornasync
|
|
|
|
pytestcov
|
|
|
|
strict-rfc3339
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-23 19:22:30 +00:00
|
|
|
disabledTests = [
|
|
|
|
"test_get_locale"
|
|
|
|
"test_get_installed_language_pack_locales_passes"
|
|
|
|
"test_get_installed_package_locales"
|
|
|
|
"test_get_installed_packages_locale"
|
|
|
|
"test_get_language_packs"
|
|
|
|
"test_get_language_pack"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "JupyterLab Server";
|
|
|
|
homepage = "https://jupyter.org";
|
|
|
|
license = licenses.bsdOriginal;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|