python3Packages.jupyterhub: enable tests
This commit is contained in:
parent
31b848653a
commit
f7b5a64b17
@ -18,6 +18,13 @@
|
|||||||
, tornado
|
, tornado
|
||||||
, traitlets
|
, traitlets
|
||||||
, nodePackages
|
, nodePackages
|
||||||
|
, beautifulsoup4
|
||||||
|
, cryptography
|
||||||
|
, notebook
|
||||||
|
, pytest-asyncio
|
||||||
|
, pytestCheckHook
|
||||||
|
, requests-mock
|
||||||
|
, virtualenv
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -120,9 +127,28 @@ buildPythonPackage rec {
|
|||||||
traitlets
|
traitlets
|
||||||
];
|
];
|
||||||
|
|
||||||
# Disable tests because they take an excessive amount of time to complete.
|
preCheck = ''
|
||||||
doCheck = false;
|
substituteInPlace jupyterhub/tests/test_spawner.py --replace \
|
||||||
|
"'jupyterhub-singleuser'" "'$out/bin/jupyterhub-singleuser'"
|
||||||
|
'';
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
# https://github.com/jupyterhub/jupyterhub/blob/master/dev-requirements.txt
|
||||||
|
beautifulsoup4
|
||||||
|
cryptography
|
||||||
|
notebook
|
||||||
|
pytest-asyncio
|
||||||
|
pytestCheckHook
|
||||||
|
requests-mock
|
||||||
|
virtualenv
|
||||||
|
];
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# Tries to install older versions through pip
|
||||||
|
"test_upgrade"
|
||||||
|
# Testcase fails to find requests import
|
||||||
|
"test_external_service"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Serves multiple Jupyter notebook instances";
|
description = "Serves multiple Jupyter notebook instances";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user