diff --git a/pkgs/development/python-modules/diagrams/default.nix b/pkgs/development/python-modules/diagrams/default.nix index f744a2585f89..d34fc3b899f5 100644 --- a/pkgs/development/python-modules/diagrams/default.nix +++ b/pkgs/development/python-modules/diagrams/default.nix @@ -25,6 +25,11 @@ buildPythonPackage rec { sha256 = "1lcqsy3bvlnlnakjysp8qjhy26bhkp1izi5dvzq2fpsffgxk4si4"; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace 'jinja2 = "^2.10"' 'jinja2 = "*"' + ''; + preConfigure = '' patchShebangs autogen.sh ./autogen.sh