pythonPackages.psutil: fix fix for darwin build

PR #82524 correctly diagnosed the problem, but slightly fluffed the boolean
logic (disable tests for Darwin as well as non-x86_64 arch).
This commit is contained in:
Simon Chatterjee 2020-06-19 20:03:41 +01:00
parent c87f619edd
commit 73f7453bfb

View file

@ -16,7 +16,7 @@ buildPythonPackage rec {
# arch doesn't report frequency is the same way
# tests segfaults on darwin https://github.com/giampaolo/psutil/issues/1715
doCheck = stdenv.isDarwin || stdenv.isx86_64;
doCheck = !stdenv.isDarwin && stdenv.isx86_64;
checkInputs = [ pytest ]
++ lib.optionals isPy27 [ mock ipaddress ];
# out must be referenced as test import paths are relative