From b9dab7ce25ad12e82c81e9f33f89dbbe7134a9e1 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 20 Jul 2023 08:49:34 +0200 Subject: [PATCH] python310Packages.jupyter-nbextensions-configurator: run tests --- .../default.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/pkgs/development/python-modules/jupyter-nbextensions-configurator/default.nix b/pkgs/development/python-modules/jupyter-nbextensions-configurator/default.nix index c675542be108..61c235877f4a 100644 --- a/pkgs/development/python-modules/jupyter-nbextensions-configurator/default.nix +++ b/pkgs/development/python-modules/jupyter-nbextensions-configurator/default.nix @@ -8,6 +8,9 @@ , notebook , pyyaml , tornado +, nose +, pytestCheckHook +, selenium }: buildPythonPackage rec { @@ -39,6 +42,19 @@ buildPythonPackage rec { tornado ]; + nativeCheckInputs = [ + nose + pytestCheckHook + selenium + ]; + + # Those tests fails upstream + disabledTestPaths = [ + "tests/test_application.py" + "tests/test_jupyterhub.py" + "tests/test_nbextensions_configurator.py" + ]; + pythonImportsCheck = [ "jupyter_nbextensions_configurator" ]; meta = with lib; {