diff --git a/pkgs/servers/matrix-synapse/default.nix b/pkgs/servers/matrix-synapse/default.nix index 6214df94be971..9380a22dae8cd 100644 --- a/pkgs/servers/matrix-synapse/default.nix +++ b/pkgs/servers/matrix-synapse/default.nix @@ -4,13 +4,25 @@ , callPackage }: -with python3.pkgs; - let - plugins = python3.pkgs.callPackage ./plugins { }; + py = python3.override { + packageOverrides = self: super: { + twisted = super.twisted.overridePythonAttrs (oldAttrs: rec { + version = "21.7.0"; + src = oldAttrs.src.override { + inherit version; + extension = "tar.gz"; + sha256 = "01lh225d7lfnmfx4f4kxwl3963gjc9yg8jfkn1w769v34ia55mic"; + }; + + propagatedBuildInputs = with self; oldAttrs.propagatedBuildInputs ++ [ typing-extensions ]; + }); + }; + }; + plugins = py.pkgs.callPackage ./plugins { }; tools = callPackage ./tools { }; in -buildPythonApplication rec { +with py.pkgs; buildPythonApplication rec { pname = "matrix-synapse"; version = "1.39.0";