python2.pkgs.psutil: fix build
This commit is contained in:
parent
742af1b8bc
commit
fbe4ff30a2
@ -3,6 +3,7 @@
|
|||||||
, pytest
|
, pytest
|
||||||
, mock
|
, mock
|
||||||
, ipaddress
|
, ipaddress
|
||||||
|
, unittest2
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -18,7 +19,7 @@ buildPythonPackage rec {
|
|||||||
# tests segfaults on darwin https://github.com/giampaolo/psutil/issues/1715
|
# 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 ]
|
checkInputs = [ pytest ]
|
||||||
++ lib.optionals isPy27 [ mock ipaddress ];
|
++ lib.optionals isPy27 [ mock ipaddress unittest2 ];
|
||||||
# out must be referenced as test import paths are relative
|
# out must be referenced as test import paths are relative
|
||||||
# disable tests which don't work in sandbox
|
# disable tests which don't work in sandbox
|
||||||
# cpu_times is flakey on darwin
|
# cpu_times is flakey on darwin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user