diff --git a/pkgs/by-name/ma/matrix-synapse-unwrapped/package.nix b/pkgs/by-name/ma/matrix-synapse-unwrapped/package.nix index a0791b5ac5f52..435ef1c25ffbe 100644 --- a/pkgs/by-name/ma/matrix-synapse-unwrapped/package.nix +++ b/pkgs/by-name/ma/matrix-synapse-unwrapped/package.nix @@ -29,6 +29,11 @@ python3Packages.buildPythonApplication rec { hash = "sha256-qpgDErV1VVzaUHHQX4ReXCPihdrSKI/4HtbDeQIblR8="; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail "setuptools_rust>=1.3,<=1.11.1" "setuptools_rust<=1.12,>=1.3" + ''; + build-system = with python3Packages; [ poetry-core setuptools-rust