python3Packages.markdown-inline-graphviz-extension: fix build

This commit is contained in:
Pol Dellaiera
2026-08-20 14:58:43 +02:00
parent 872a151da3
commit e9f97240ad

View File

@@ -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 \