diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2021-01-02 20:23:30 +0100 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2021-01-02 21:15:07 +0100 |
commit | 724abf2a02b817d33f9f5b151a02a8cfa8151ef5 (patch) | |
tree | e3df4a02302fb1b747a2714ad802ce3088988885 /pkgs/development | |
parent | 854096fa4f9535178510b3ecfcea7f5a533a8763 (diff) |
python3Packages.pyro4: Fix tests on darwin
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/pyro4/default.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/pyro4/default.nix b/pkgs/development/python-modules/pyro4/default.nix index 713b257a195be..c5211162c65a8 100644 --- a/pkgs/development/python-modules/pyro4/default.nix +++ b/pkgs/development/python-modules/pyro4/default.nix @@ -32,10 +32,15 @@ buildPythonPackage rec { ]; checkInputs = [ pytestCheckHook ]; + # add testsupport.py to PATH preCheck = "PYTHONPATH=tests/PyroTests:$PYTHONPATH"; + # ignore network related tests, which fail in sandbox - pytestFlagsArray = [ "--ignore=tests/PyroTests/test_naming.py" ]; + pytestFlagsArray = [ "--ignore=tests/PyroTests/test_naming.py" ] + # test hangs on darwin with sandbox enabled + ++ lib.optionals stdenv.isDarwin [ "--ignore=tests/PyroTests/test_daemon.py" ]; + disabledTests = [ "StartNSfunc" "Broadcast" @@ -47,5 +52,5 @@ buildPythonPackage rec { homepage = "https://github.com/irmen/Pyro4"; license = licenses.mit; maintainers = with maintainers; [ prusnak ]; - }; + }; } |