diff --git a/pkgs/development/python-modules/py-cpuinfo/default.nix b/pkgs/development/python-modules/py-cpuinfo/default.nix index 37cf601695ee..c90f81ae28f8 100644 --- a/pkgs/development/python-modules/py-cpuinfo/default.nix +++ b/pkgs/development/python-modules/py-cpuinfo/default.nix @@ -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;