Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / jupyter-contrib-nbextensions / default.nix
blob5656043625f317acd7d1244ff7cffaa76bb64d40
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , ipython-genutils
5 , jupyter-contrib-core
6 , jupyter-highlight-selected-word
7 , jupyter-nbextensions-configurator
8 , lxml
9 , nose
10 , pytestCheckHook
11 , notebook
14 buildPythonPackage rec {
15   pname = "jupyter-contrib-nbextensions";
16   version = "0.7.0";
18   src = fetchFromGitHub {
19     owner = "ipython-contrib";
20     repo = "jupyter_contrib_nbextensions";
21     rev = "refs/tags/${version}";
22     hash = "sha256-1o8tBfRw6jNcKfNE7xXrQaEhx+KOv7mLOruvuMDtJ1Q=";
23   };
25   propagatedBuildInputs = [
26     ipython-genutils
27     jupyter-contrib-core
28     jupyter-highlight-selected-word
29     jupyter-nbextensions-configurator
30     lxml
31   ];
33   nativeCheckInputs = [
34     nose
35     pytestCheckHook
36   ];
38   disabledTestPaths = [
39     # Thoses tests fail upstream because of nbconvert being too recent
40     # https://github.com/ipython-contrib/jupyter_contrib_nbextensions/issues/1606
41     "tests/test_exporters.py"
43     # Requires to run jupyter which is not feasible here
44     "tests/test_application.py"
45   ];
47   pythonImportsCheck = [ "jupyter_contrib_nbextensions" ];
49   meta = with lib; {
50     description = "A collection of various notebook extensions for Jupyter";
51     homepage = "https://github.com/ipython-contrib/jupyter_contrib_nbextensions";
52     license = licenses.bsd3;
53     maintainers = with maintainers; [ GaetanLepage ];
54     # https://github.com/ipython-contrib/jupyter_contrib_nbextensions/issues/1647
55     broken = versionAtLeast notebook.version "7";
56   };