diff --git a/pkgs/development/python-modules/markdown-inline-graphviz-extension/default.nix b/pkgs/development/python-modules/markdown-inline-graphviz-extension/default.nix index 24d525a38f18..4b27fd39df80 100644 --- a/pkgs/development/python-modules/markdown-inline-graphviz-extension/default.nix +++ b/pkgs/development/python-modules/markdown-inline-graphviz-extension/default.nix @@ -1,6 +1,7 @@ { buildPythonPackage, fetchFromGitHub, + fetchpatch, pkgs, # Only for pkgs.graphviz lib, setuptools, @@ -19,6 +20,15 @@ buildPythonPackage rec { hash = "sha256-FUBRFImX5NOxyYAK7z5Bo8VKVQllTbEewEGZXtVMBQE="; }; + patches = [ + # Fix the version discrepancy between the package and the source code + # Should be removed at the next release + (fetchpatch { + url = "https://github.com/cesaremorel/markdown-inline-graphviz/commit/579f10af9fe7187c717c20615f65774f898c1a0d.patch"; + hash = "sha256-PJdwQ6+vq28m55vbgFzlhMmgvFqGPsYfIaCYunG7bMU="; + }) + ]; + # Using substituteInPlace because there's only one replacement postPatch = '' substituteInPlace markdown_inline_graphviz.py \