3
0
Fork 0
forked from mirrors/nixpkgs

pythonPackages.py-cpuinfo: Fix darwin build (#47558)

This commit is contained in:
Josef Kemetmüller 2018-09-30 21:19:05 +02:00 committed by xeji
parent 78e244e419
commit 49dcf7be62

View file

@ -1,6 +1,7 @@
{ lib
, fetchFromGitHub
, buildPythonPackage
, pytest
}:
buildPythonPackage rec {
@ -14,6 +15,16 @@ buildPythonPackage rec {
sha256 = "1pp561lj80jnvr2038nrzhmks2akxsbdqxvfrqa6n340x81981lm";
};
checkInputs = [
pytest
];
checkPhase = ''
runHook preCheck
pytest -k "not TestActual"
runHook postCheck
'';
meta = {
description = "Get CPU info with pure Python 2 & 3";
homepage = https://github.com/workhorsy/py-cpuinfo;