Something went wrong. Try again.
lol
Something went wrong. Try again.
1.9 kB · 96 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697{ lib, buildPythonPackage, fetchPypi, hatchling, beautifulsoup4, bleach, defusedxml, jinja2, jupyter-core, jupyterlab-pygments, markupsafe, mistune, nbclient, packaging, pandocfilters, pygments, traitlets, flaky, ipykernel, ipywidgets, pytestCheckHook,}:
buildPythonPackage rec { pname = "nbconvert"; version = "7.17.1"; pyproject = true;
src = fetchPypi { inherit pname version; hash = "sha256-NNDQp+c848urbFquj09Gh5coCwH9i9LKdG2oVp7d19I="; };
# Add $out/share/jupyter to the list of paths that are used to search for # various exporter templates patches = [ ./templates.patch ];
postPatch = '' substituteAllInPlace ./nbconvert/exporters/templateexporter.py '';
build-system = [ hatchling ];
dependencies = [ beautifulsoup4 bleach defusedxml jinja2 jupyter-core jupyterlab-pygments markupsafe mistune nbclient packaging pandocfilters pygments traitlets ] ++ bleach.optional-dependencies.css;
preCheck = '' export HOME=$(mktemp -d) '';
nativeCheckInputs = [ flaky ipykernel ipywidgets pytestCheckHook ];
pytestFlags = [ "-Wignore::DeprecationWarning" ];
disabledTests = [ # Attempts network access (Failed to establish a new connection: [Errno -3] Temporary failure in name resolution) "test_export" "test_webpdf_with_chromium" # ModuleNotFoundError: No module named 'nbconvert.tests' "test_convert_full_qualified_name" "test_post_processor" ];
# Some of the tests use localhost networking. __darwinAllowLocalNetworking = true;
meta = { description = "Converting Jupyter Notebooks"; homepage = "https://github.com/jupyter/nbconvert"; changelog = "https://github.com/jupyter/nbconvert/blob/v${version}/CHANGELOG.md"; license = lib.licenses.bsd3; teams = [ lib.teams.jupyter ]; };}