From b17fca4a0f7baeeda65901afeeb8963538589e9c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= <sandro.jaeckel@gmail.com>
Date: Sun, 3 Jan 2021 00:15:35 +0100
Subject: [PATCH] pythonPackages.Pyro4: Fix hanging tests on darwin

---
 pkgs/development/python-modules/pyro4/default.nix | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/pkgs/development/python-modules/pyro4/default.nix b/pkgs/development/python-modules/pyro4/default.nix
index c5211162c65..508722e70fb 100644
--- a/pkgs/development/python-modules/pyro4/default.nix
+++ b/pkgs/development/python-modules/pyro4/default.nix
@@ -37,9 +37,7 @@ buildPythonPackage rec {
   preCheck = "PYTHONPATH=tests/PyroTests:$PYTHONPATH";
 
   # ignore network related tests, which fail in sandbox
-  pytestFlagsArray = [ "--ignore=tests/PyroTests/test_naming.py" ]
-    # test hangs on darwin with sandbox enabled
-    ++ lib.optionals stdenv.isDarwin [ "--ignore=tests/PyroTests/test_daemon.py" ];
+  pytestFlagsArray = [ "--ignore=tests/PyroTests/test_naming.py" ];
 
   disabledTests = [
     "StartNSfunc"
@@ -47,6 +45,9 @@ buildPythonPackage rec {
     "GetIP"
   ];
 
+  # otherwise the tests hang the build
+  __darwinAllowLocalNetworking = true;
+
   meta = with stdenv.lib; {
     description = "Distributed object middleware for Python (RPC)";
     homepage = "https://github.com/irmen/Pyro4";