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.7";
43 inherit pname version;
44 hash = "sha256-eufMxoSVtWXasVNFnufmUDmXCRPrEVBw2m4sZzzw6fg=";
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)
94 # Attempts network access (Failed to establish a new connection: [Errno -3] Temporary failure in name resolution)
96 "test_webpdf_with_chromium"
97 # ModuleNotFoundError: No module named 'nbconvert.tests'
98 "test_convert_full_qualified_name"
102 # Some of the tests use localhost networking.
103 __darwinAllowLocalNetworking = true;
106 description = "Converting Jupyter Notebooks";
107 homepage = "https://jupyter.org/";
108 license = lib.licenses.bsd3;
109 maintainers = with lib.maintainers; [ fridh ];