mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
35 lines
653 B
Nix
35 lines
653 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildPythonPackage
|
|
, pytest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "py-cpuinfo";
|
|
version = "4.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "workhorsy";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
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;
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ costrouc ];
|
|
};
|
|
}
|