python3Packages.jupyterhub: enable tests

This commit is contained in:
Martin Weinelt 2021-02-12 04:25:16 +01:00
parent 31b848653a
commit f7b5a64b17
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -18,6 +18,13 @@
, tornado
, traitlets
, nodePackages
, beautifulsoup4
, cryptography
, notebook
, pytest-asyncio
, pytestCheckHook
, requests-mock
, virtualenv
}:
let
@ -120,9 +127,28 @@ buildPythonPackage rec {
traitlets
];
# Disable tests because they take an excessive amount of time to complete.
doCheck = false;
preCheck = ''
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; {
description = "Serves multiple Jupyter notebook instances";