Skip to content

Commit

Permalink
pythonPackages.py-cpuinfo: Fix darwin build (#47558)
Browse files Browse the repository at this point in the history
  • Loading branch information
knedlsepp authored and xeji committed Sep 30, 2018
1 parent 78e244e commit 49dcf7b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkgs/development/python-modules/py-cpuinfo/default.nix
@@ -1,6 +1,7 @@
{ lib
, fetchFromGitHub
, buildPythonPackage
, pytest
}:

buildPythonPackage rec {
Expand All @@ -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;
Expand Down

0 comments on commit 49dcf7b

Please sign in to comment.