mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-21 04:13:12 +00:00
Merge #247814: python3Packages.jupyterlab_server: run tests
This commit is contained in:
commit
2f4e3f6fa5
@ -11,9 +11,10 @@
|
|||||||
, jupyter-server
|
, jupyter-server
|
||||||
, tomli
|
, tomli
|
||||||
, openapi-core
|
, openapi-core
|
||||||
, pytest-timeout
|
, pytest-jupyter
|
||||||
, pytest-tornasync
|
, requests-mock
|
||||||
, ruamel-yaml
|
, ruamel-yaml
|
||||||
|
, strict-rfc3339
|
||||||
, importlib-metadata
|
, importlib-metadata
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -47,19 +48,16 @@ buildPythonPackage rec {
|
|||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
openapi-core
|
openapi-core
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
pytest-timeout
|
pytest-jupyter
|
||||||
pytest-tornasync
|
requests-mock
|
||||||
ruamel-yaml
|
ruamel-yaml
|
||||||
|
strict-rfc3339
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# translation tests try to install additional packages into read only paths
|
sed -i "/timeout/d" pyproject.toml
|
||||||
rm -r tests/translations/
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# https://github.com/jupyterlab/jupyterlab_server/blob/v2.15.2/pyproject.toml#L61
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
export HOME=$(mktemp -d)
|
export HOME=$(mktemp -d)
|
||||||
'';
|
'';
|
||||||
@ -70,6 +68,17 @@ buildPythonPackage rec {
|
|||||||
"-W ignore::DeprecationWarning"
|
"-W ignore::DeprecationWarning"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
disabledTestPaths = [
|
||||||
|
"tests/test_settings_api.py"
|
||||||
|
"tests/test_themes_api.py"
|
||||||
|
"tests/test_translation_api.py"
|
||||||
|
"tests/test_workspaces_api.py"
|
||||||
|
];
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
"test_get_listing"
|
||||||
|
];
|
||||||
|
|
||||||
__darwinAllowLocalNetworking = true;
|
__darwinAllowLocalNetworking = true;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user