29 # see https://github.com/jupyter/nbconvert/issues/1896
30 style-css = fetchurl {
31 url = "https://cdn.jupyter.org/notebook/5.4.0/style/style.min.css";
32 hash = "sha256-WGWmCfRDewRkvBIc1We2GQdOVAoFFaO4LyIvdk61HgE=";
34 in buildPythonPackage rec {
38 disabled = pythonOlder "3.8";
43 inherit pname version;
44 hash = "sha256-9bwVoSR+FN1Bzu8MCjvHACDgFldusFeNpi8cW0+VBHk=";
47 # Add $out/share/jupyter to the list of paths that are used to search for
48 # various exporter templates
54 substituteAllInPlace ./nbconvert/exporters/templateexporter.py
56 mkdir -p share/templates/classic/static
57 cp ${style-css} share/templates/classic/static/style.css
64 propagatedBuildInputs = [
79 ] ++ lib.optionals (pythonOlder "3.10") [
84 export HOME=$(mktemp -d)
95 # Attempts network access (Failed to establish a new connection: [Errno -3] Temporary failure in name resolution)
97 "test_webpdf_with_chromium"
98 # ModuleNotFoundError: No module named 'nbconvert.tests'
99 "test_convert_full_qualified_name"
100 "test_post_processor"
103 # Some of the tests use localhost networking.
104 __darwinAllowLocalNetworking = true;
107 description = "Converting Jupyter Notebooks";
108 homepage = "https://jupyter.org/";
109 license = lib.licenses.bsd3;
110 maintainers = with lib.maintainers; [ fridh ];