0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

python310Packages.py-cpuinfo: 8.0.0 -> 9.0.0

This commit is contained in:
Fabian Affolter 2022-10-29 15:10:49 +02:00
parent 4e2a1eb1d0
commit d2cd38dd31

View file

@ -1,20 +1,24 @@
{ lib
, stdenv
, fetchFromGitHub
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, sysctl
}:
buildPythonPackage rec {
pname = "py-cpuinfo";
version = "8.0.0";
version = "9.0.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "workhorsy";
repo = pname;
rev = "v${version}";
sha256 = "sha256-Mgzj1HTasUNHeHMVwV6d+TeyVqnBNUwCJ1EC3kfovf8=";
hash = "sha256-Q5u0guAqDVhf6bvJTzNvCpWbIzjxxAjE7s0OuXj9T4Q=";
};
checkInputs = [
@ -28,7 +32,9 @@ buildPythonPackage rec {
--replace "_run_and_get_stdout(['sysctl'" "_run_and_get_stdout(['${sysctl}/bin/sysctl'"
'';
pythonImportsCheck = [ "cpuinfo" ];
pythonImportsCheck = [
"cpuinfo"
];
meta = with lib; {
description = "Get CPU info with pure Python";