diff options
| author | Sebastián Mancilla <smancill@smancill.dev> | 2022-08-15 11:02:34 -0400 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2022-08-20 07:13:04 +0000 |
| commit | 3f717347721ba347bbe1cbeb0b4207d5e8cd5e12 (patch) | |
| tree | 129162260b571607bedb92f8fbb4371e9b08e91e | |
| parent | Merge pull request #187424 from NixOS/backport-187376-to-release-22.05 (diff) | |
| download | nixpkgs-origin/backport-186804-to-release-22.05.tar.gz | |
python310Packages.nbconvert: use mistune 2.xorigin/backport-186804-to-release-22.05
mistune 0.8 was removed by #186272.
(cherry picked from commit 8d05ef51d11dcaa32dc37e38c563674f579bbc5b)
| -rw-r--r-- | pkgs/development/python-modules/nbconvert/default.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/nbconvert/default.nix b/pkgs/development/python-modules/nbconvert/default.nix index 9b85586f7d9b..df01318a6ea1 100644 --- a/pkgs/development/python-modules/nbconvert/default.nix +++ b/pkgs/development/python-modules/nbconvert/default.nix @@ -3,6 +3,7 @@ , buildPythonPackage , defusedxml , fetchPypi +, fetchpatch , ipywidgets , jinja2 , jupyterlab-pygments @@ -30,10 +31,22 @@ buildPythonPackage rec { # various exporter templates patches = [ ./templates.patch + + # Use mistune 2.x + (fetchpatch { + name = "support-mistune-2.x.patch"; + url = "https://github.com/jupyter/nbconvert/commit/e870d9a4a61432a65bee5466c5fa80c9ee28966e.patch"; + hash = "sha256-kdOmE7BnkRy2lsNQ2OVrEXXZntJUPJ//b139kSsfKmI="; + excludes = [ "pyproject.toml" ]; + }) ]; postPatch = '' substituteAllInPlace ./nbconvert/exporters/templateexporter.py + + # Use mistune 2.x + substituteInPlace setup.py \ + --replace "mistune>=0.8.1,<2" "mistune>=2.0.3,<3" ''; propagatedBuildInputs = [ |
