8d28093ffb
GitOrigin-RevId: 31ffc50c571e6683e9ecc9dbcbd4a8e9914b4497
65 lines
1.3 KiB
Nix
65 lines
1.3 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, jsonschema
|
|
, pythonOlder
|
|
, requests
|
|
, pytestCheckHook
|
|
, pyjson5
|
|
, Babel
|
|
, jupyter_server
|
|
, openapi-core
|
|
, pytest-tornasync
|
|
, ruamel-yaml
|
|
, strict-rfc3339
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jupyterlab_server";
|
|
version = "2.8.1";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "39fd519e9b3275873bd15de891363c28f2649814f7bbc11c57469c60e8408e97";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i "/^addopts/d" pyproject.toml
|
|
'';
|
|
|
|
propagatedBuildInputs = [ requests jsonschema pyjson5 Babel jupyter_server ];
|
|
|
|
checkInputs = [
|
|
openapi-core
|
|
pytestCheckHook
|
|
pytest-tornasync
|
|
ruamel-yaml
|
|
strict-rfc3339
|
|
];
|
|
|
|
pytestFlagsArray = [ "--pyargs" "jupyterlab_server" ];
|
|
|
|
disabledTests = [
|
|
# 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"
|
|
];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
meta = with lib; {
|
|
description = "JupyterLab Server";
|
|
homepage = "https://jupyter.org";
|
|
license = licenses.bsdOriginal;
|
|
maintainers = [ maintainers.costrouc ];
|
|
};
|
|
}
|