From ae4c3a900d46ef9158d7403c9b90b7e1a1035796 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Sun, 15 Jan 2023 14:21:25 +0100 Subject: [PATCH] python311Packages.twisted: fix tests --- pkgs/development/python-modules/twisted/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/development/python-modules/twisted/default.nix b/pkgs/development/python-modules/twisted/default.nix index f90cdeec51c..e8f0b815f04 100644 --- a/pkgs/development/python-modules/twisted/default.nix +++ b/pkgs/development/python-modules/twisted/default.nix @@ -1,6 +1,7 @@ { lib , stdenv , buildPythonPackage +, pythonAtLeast , pythonOlder , fetchPypi , fetchpatch @@ -62,6 +63,16 @@ buildPythonPackage rec { url = "https://github.com/twisted/twisted/pull/11787.diff"; hash = "sha256-bQgUmbvDa61Vg8p/o/ivfkOAHyj1lTgHkrRVEGLM9aU="; }) + ] ++ lib.optionals (pythonAtLeast "3.11") [ + (fetchpatch { + url = "https://github.com/twisted/twisted/pull/11734.diff"; + excludes = [ ".github/workflows/*" ]; + hash = "sha256-Td08pDxHwl7fPLCA6rUySuXpy8YmZfvXPHGsBpdcmSo="; + }) + (fetchpatch { + url = "https://github.com/twisted/twisted/commit/00bf5be704bee022ba4d9b24eb6c2c768b4a1921.patch"; + hash = "sha256-fnBzczm3OlhbjRcePIQ7dSX6uldlCZ9DJTS+UFO2nAQ="; + }) ]; __darwinAllowLocalNetworking = true;