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:
parent
4e2a1eb1d0
commit
d2cd38dd31
1 changed files with 10 additions and 4 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue