Skip to content

Commit

Permalink
python310Packages.jupyter-contrib-nbextensions: run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Aug 19, 2023
1 parent 635923c commit 3f69b1c
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
, jupyter-highlight-selected-word
, jupyter-nbextensions-configurator
, lxml
, nose
, pytestCheckHook
, notebook
}:

buildPythonPackage rec {
Expand All @@ -27,12 +30,28 @@ buildPythonPackage rec {
lxml
];

nativeCheckInputs = [
nose
pytestCheckHook
];

disabledTestPaths = [
# Thoses tests fail upstream because of nbconvert being too recent
# https://github.com/ipython-contrib/jupyter_contrib_nbextensions/issues/1606
"tests/test_exporters.py"

# Requires to run jupyter which is not feasible here
"tests/test_application.py"
];

pythonImportsCheck = [ "jupyter_contrib_nbextensions" ];

meta = with lib; {
description = "A collection of various notebook extensions for Jupyter";
homepage = "https://github.com/ipython-contrib/jupyter_contrib_nbextensions";
license = licenses.bsd3;
maintainers = with maintainers; [ GaetanLepage ];
# https://github.com/ipython-contrib/jupyter_contrib_nbextensions/issues/1647
broken = versionAtLeast notebook.version "7";
};
}

0 comments on commit 3f69b1c

Please sign in to comment.