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
|
2021-06-28 23:13:55 +00:00
|
|
|
, openapi-core
|
2021-03-23 19:22:30 +00:00
|
|
|
, pytest-tornasync
|
|
|
|
, pytestcov
|
2021-06-28 23:13:55 +00:00
|
|
|
, ruamel-yaml
|
2021-03-23 19:22:30 +00:00
|
|
|
, strict-rfc3339
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jupyterlab_server";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "2.6.0";
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "f300adf6bb0a952bebe9c807a3b2a345d62da39b476b4f69ea0dc6b5f3f6b97d";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -i "/^addopts/d" pyproject.toml
|
|
|
|
'';
|
|
|
|
|
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 = [
|
2021-06-28 23:13:55 +00:00
|
|
|
openapi-core
|
2021-03-23 19:22:30 +00:00
|
|
|
pytestCheckHook
|
|
|
|
pytest-tornasync
|
2021-06-28 23:13:55 +00:00
|
|
|
ruamel-yaml
|
2021-03-23 19:22:30 +00:00
|
|
|
strict-rfc3339
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
pytestFlagsArray = [ "--pyargs" "jupyterlab_server" ];
|
|
|
|
|
2021-03-23 19:22:30 +00:00
|
|
|
disabledTests = [
|
2021-06-28 23:13:55 +00:00
|
|
|
# AttributeError: 'SpecPath' object has no attribute 'paths'
|
|
|
|
"test_get_listing"
|
|
|
|
"test_get_settings"
|
|
|
|
"test_get_federated"
|
|
|
|
"test_listing"
|
|
|
|
"test_patch"
|
|
|
|
"test_patch_unicode"
|
|
|
|
"test_get_theme"
|
|
|
|
"test_delete"
|
|
|
|
"test_get_non_existant"
|
|
|
|
"test_get"
|
2021-03-23 19:22:30 +00:00
|
|
|
];
|
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 ];
|
|
|
|
};
|
|
|
|
}
|