From 73f7453bfbfcc63571011a8adf586cea146e4ff7 Mon Sep 17 00:00:00 2001 From: Simon Chatterjee Date: Fri, 19 Jun 2020 20:03:41 +0100 Subject: [PATCH] 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). --- pkgs/development/python-modules/psutil/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/psutil/default.nix b/pkgs/development/python-modules/psutil/default.nix index 8e479dfaca2..69181af222c 100644 --- a/pkgs/development/python-modules/psutil/default.nix +++ b/pkgs/development/python-modules/psutil/default.nix @@ -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