2022-09-09 14:08:57 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-08-12 12:06:08 +00:00
|
|
|
, hatchling
|
2020-04-24 23:36:52 +00:00
|
|
|
, jsonschema
|
|
|
|
, pythonOlder
|
|
|
|
, requests
|
2021-03-23 19:22:30 +00:00
|
|
|
, pytestCheckHook
|
2022-09-09 14:08:57 +00:00
|
|
|
, json5
|
2022-05-18 14:49:53 +00:00
|
|
|
, babel
|
2021-03-23 19:22:30 +00:00
|
|
|
, jupyter_server
|
2021-06-28 23:13:55 +00:00
|
|
|
, openapi-core
|
2022-08-12 12:06:08 +00:00
|
|
|
, pytest-timeout
|
2021-03-23 19:22:30 +00:00
|
|
|
, pytest-tornasync
|
2021-06-28 23:13:55 +00:00
|
|
|
, ruamel-yaml
|
2022-09-09 14:08:57 +00:00
|
|
|
, importlib-metadata
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jupyterlab_server";
|
2022-10-06 18:32:54 +00:00
|
|
|
version = "2.15.2";
|
2022-08-12 12:06:08 +00:00
|
|
|
format = "pyproject";
|
2021-06-28 23:13:55 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-10-06 18:32:54 +00:00
|
|
|
sha256 = "sha256-wLzdRgbmQObxbSNs6sVTNtyL+Yy7zgZ68nUkzML7JkA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
hatchling
|
|
|
|
];
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
jsonschema
|
|
|
|
json5
|
|
|
|
babel
|
|
|
|
jupyter_server
|
|
|
|
] ++ lib.optional (pythonOlder "3.10") importlib-metadata;
|
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
|
2022-08-12 12:06:08 +00:00
|
|
|
pytest-timeout
|
2021-03-23 19:22:30 +00:00
|
|
|
pytest-tornasync
|
2021-06-28 23:13:55 +00:00
|
|
|
ruamel-yaml
|
2021-03-23 19:22:30 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
postPatch = ''
|
|
|
|
# translation tests try to install additional packages into read only paths
|
|
|
|
rm -r tests/translations/
|
|
|
|
'';
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
pytestFlagsArray = [
|
2022-09-09 14:08:57 +00:00
|
|
|
# DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12.
|
|
|
|
# Use setuptools or check PEP 632 for potential alternatives.
|
2022-08-12 12:06:08 +00:00
|
|
|
"-W ignore::DeprecationWarning"
|
|
|
|
];
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-09-09 14:08:57 +00:00
|
|
|
description = "A set of server components for JupyterLab and JupyterLab like applications";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://jupyter.org";
|
|
|
|
license = licenses.bsdOriginal;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|