lol
at 23.11-beta 57 lines 1.5 kB view raw
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 12}: 13 14buildPythonPackage rec { 15 pname = "jupyter-contrib-nbextensions"; 16 version = "0.7.0"; 17 18 src = fetchFromGitHub { 19 owner = "ipython-contrib"; 20 repo = "jupyter_contrib_nbextensions"; 21 rev = "refs/tags/${version}"; 22 hash = "sha256-1o8tBfRw6jNcKfNE7xXrQaEhx+KOv7mLOruvuMDtJ1Q="; 23 }; 24 25 propagatedBuildInputs = [ 26 ipython-genutils 27 jupyter-contrib-core 28 jupyter-highlight-selected-word 29 jupyter-nbextensions-configurator 30 lxml 31 ]; 32 33 nativeCheckInputs = [ 34 nose 35 pytestCheckHook 36 ]; 37 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" 42 43 # Requires to run jupyter which is not feasible here 44 "tests/test_application.py" 45 ]; 46 47 pythonImportsCheck = [ "jupyter_contrib_nbextensions" ]; 48 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 }; 57}