lol

python3Packages.nbconvert: patch bug that made mkdocs-jupyter failing

authored by

Sebastien Iooss and committed by
Frederik Rietdijk
00e30f7a 22080b7d

+16
+16
pkgs/development/python-modules/nbconvert/default.nix
··· 39 39 hash = "sha256-kdOmE7BnkRy2lsNQ2OVrEXXZntJUPJ//b139kSsfKmI="; 40 40 excludes = [ "pyproject.toml" ]; 41 41 }) 42 + 43 + # patch nbconvert/filters/markdown_mistune.py 44 + (fetchpatch { 45 + name = "clean-up-markdown-parsing.patch"; 46 + url = "https://github.com/jupyter/nbconvert/commit/4df1f5451c9c3e8121036dfbc7e07f0095f4d524.patch"; 47 + hash = "sha256-O+VWUaQi8UMCpE9/h/IsrenmEuJ2ac/kBkUBq7GFJTY"; 48 + }) 49 + (fetchpatch { 50 + name = "fix-markdown-table.patch"; 51 + url = "https://github.com/jupyter/nbconvert/commit/d3900ed4527f024138dc3a8658c6a1b1dfc43c09.patch"; 52 + hash = "sha256-AFE1Zhw29JMLB0Sj17zHcOfy7VEFqLekO8NYbyMLrdI="; 53 + }) 42 54 ]; 43 55 44 56 postPatch = '' ··· 47 59 # Use mistune 2.x 48 60 substituteInPlace setup.py \ 49 61 --replace "mistune>=0.8.1,<2" "mistune>=2.0.3,<3" 62 + 63 + # Equivalent of the upstream patch https://github.com/jupyter/nbconvert/commit/aec39288c9a6c614d659bcaf9f5cb36634d6b37b.patch 64 + substituteInPlace share/jupyter/nbconvert/templates/lab/base.html.j2 \ 65 + --replace "{{ output.data['image/svg+xml'] | clean_html }}" "{{ output.data['image/svg+xml'].encode(\"utf-8\") | clean_html }}" 50 66 ''; 51 67 52 68 propagatedBuildInputs = [