From 405619ee0dbaef2428140e0df583f0ca0f0ea654 Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Sat, 24 Sep 2022 14:40:15 -0700 Subject: [PATCH] python310Packages.twisted: fix test_openFileDescriptors (#192825) --- pkgs/development/python-modules/twisted/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/twisted/default.nix b/pkgs/development/python-modules/twisted/default.nix index ac09730526b3..fa6c4726222c 100644 --- a/pkgs/development/python-modules/twisted/default.nix +++ b/pkgs/development/python-modules/twisted/default.nix @@ -3,6 +3,7 @@ , buildPythonPackage , pythonOlder , fetchPypi +, fetchpatch , python , appdirs , attrs @@ -53,9 +54,17 @@ buildPythonPackage rec { pname = "Twisted"; inherit version; extension = "tar.gz"; - sha256 = "sha256-5bYN458tHaFT++GHTYhf4/y9sh/MRG+nWaU+j8NRO+0="; + hash = "sha256-5bYN458tHaFT++GHTYhf4/y9sh/MRG+nWaU+j8NRO+0="; }; + patches = [ + (fetchpatch { + name = "fix-test_openFileDescriptors.patch"; + url = "https://github.com/twisted/twisted/commit/47f47634940141466177261b20bb43c300531e38.patch"; + hash = "sha256-wacnF166PnZHXJEqTlPZUdDILJIVHOcnC2a34SQumvs="; + }) + ]; + __darwinAllowLocalNetworking = true; propagatedBuildInputs = [