2018-08-10 13:36:50 -07:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
2021-02-02 13:35:08 -08:00
|
|
|
, pytestCheckHook
|
2018-08-10 13:36:50 -07:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "py-cpuinfo";
|
2021-02-02 13:35:08 -08:00
|
|
|
version = "7.0.0";
|
2018-08-10 13:36:50 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "workhorsy";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-02-02 13:35:08 -08:00
|
|
|
sha256 = "10qfaibyb2syiwiyv74l7d97vnmlk079qirgnw3ncklqjs0s3gbi";
|
2018-08-10 13:36:50 -07:00
|
|
|
};
|
|
|
|
|
2018-09-30 12:19:05 -07:00
|
|
|
checkInputs = [
|
2021-02-02 13:35:08 -08:00
|
|
|
pytestCheckHook
|
2018-09-30 12:19:05 -07:00
|
|
|
];
|
|
|
|
|
2018-08-10 13:36:50 -07:00
|
|
|
meta = {
|
|
|
|
description = "Get CPU info with pure Python 2 & 3";
|
2020-03-26 05:19:33 -07:00
|
|
|
longDescription = ''
|
|
|
|
Py-cpuinfo gets CPU info with pure Python and should work without any
|
|
|
|
extra programs or libraries, beyond what your OS provides. It does not
|
|
|
|
require any compilation (C/C++, assembly, etc.) to use and works with
|
|
|
|
Python 2 and 3.
|
|
|
|
'';
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
changelog = "https://github.com/workhorsy/py-cpuinfo/blob/v${version}/ChangeLog";
|
2018-08-10 13:36:50 -07:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ costrouc ];
|
|
|
|
};
|
|
|
|
}
|