From e9f97240ad51633ebfa5428477bf3fc4917ead00 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Thu, 20 Aug 2026 14:58:43 +0200 Subject: [PATCH] python3Packages.markdown-inline-graphviz-extension: fix build --- .../markdown-inline-graphviz-extension/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 \