git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #108269 from SuperSandro2000/pyro3-darwin

pythonPackages.Pyro4: Fix hanging tests on darwin

commited6af9373b1edbb73ed21640dfe1f5449ad17e0f authorSandro <sandro.jaeckel@gmail.com> dateSun 3 Jan 2021, 06:39 (6 years ago) parent88d2028b17fca4
1 file changed+4−3
pkgs/development/python-modules/pyro4/default.nix+4−3
pkgs/development/python-modules/pyro4/default.nix+4−3
@@ -37,9 +37,7 @@ buildPythonPackage rec {
3737 preCheck = "PYTHONPATH=tests/PyroTests:$PYTHONPATH";
3838
3939 # ignore network related tests, which fail in sandbox
40− pytestFlagsArray = [ "--ignore=tests/PyroTests/test_naming.py" ]
41− # test hangs on darwin with sandbox enabled
42− ++ lib.optionals stdenv.isDarwin [ "--ignore=tests/PyroTests/test_daemon.py" ];
40+ pytestFlagsArray = [ "--ignore=tests/PyroTests/test_naming.py" ];
4341
4442 disabledTests = [
4543 "StartNSfunc"
@@ -47,6 +45,9 @@ buildPythonPackage rec {
4745 "GetIP"
4846 ];
4947
48+ # otherwise the tests hang the build
49+ __darwinAllowLocalNetworking = true;
50+
5051 meta = with stdenv.lib; {
5152 description = "Distributed object middleware for Python (RPC)";
5253 homepage = "https://github.com/irmen/Pyro4";