diff --git a/pkgs/development/python-modules/matplotlib/default.nix b/pkgs/development/python-modules/matplotlib/default.nix index eed032805c76..20a63ca43387 100644 --- a/pkgs/development/python-modules/matplotlib/default.nix +++ b/pkgs/development/python-modules/matplotlib/default.nix @@ -95,6 +95,9 @@ buildPythonPackage (finalAttrs: { '' + '' patchShebangs tools + + substituteInPlace pyproject.toml \ + --replace-fail "setuptools_scm>=7,<10" "setuptools_scm" '' + lib.optionalString (stdenv.hostPlatform.isLinux && interactive) '' # fix paths to libraries in dlopen calls (headless detection)