diff --git a/pkgs/development/python-modules/matplotlib/default.nix b/pkgs/development/python-modules/matplotlib/default.nix index c7fb77d7912e..2f11fd9a0d65 100644 --- a/pkgs/development/python-modules/matplotlib/default.nix +++ b/pkgs/development/python-modules/matplotlib/default.nix @@ -98,9 +98,6 @@ buildPythonPackage (finalAttrs: { --replace-fail "setuptools_scm>=7,<10" setuptools_scm 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)