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

python3Packages.Pyro4: Fix tests on darwin

commit92a391c20be629054d89e9031269542a874adf36 authorBenjamin Hipple <bhipple@protonmail.com> dateSat 2 Jan 2021, 18:02 (6 years ago) parente78177e724abf2
1 file changed+7−2
pkgs/development/python-modules/pyro4/default.nix+7−2
pkgs/development/python-modules/pyro4/default.nix+7−2
@@ -32,10 +32,15 @@ buildPythonPackage rec {
3232 ];
3333
3434 checkInputs = [ pytestCheckHook ];
35+
3536 # add testsupport.py to PATH
3637 preCheck = "PYTHONPATH=tests/PyroTests:$PYTHONPATH";
38+
3739 # ignore network related tests, which fail in sandbox
38− pytestFlagsArray = [ "--ignore=tests/PyroTests/test_naming.py" ];
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" ];
43+
3944 disabledTests = [
4045 "StartNSfunc"
4146 "Broadcast"
@@ -47,5 +52,5 @@ buildPythonPackage rec {
4752 homepage = "https://github.com/irmen/Pyro4";
4853 license = licenses.mit;
4954 maintainers = with maintainers; [ prusnak ];
50− };
55+ };
5156}