tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
0
fork
atom
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
0
fork
atom
overview
issues
pulls
pipelines
python310Packages.py-cpuinfo: 8.0.0 -> 9.0.0
Fabian Affolter
3 years ago
d2cd38dd
4e2a1eb1
+10
-4
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
py-cpuinfo
default.nix
+10
-4
pkgs/development/python-modules/py-cpuinfo/default.nix
···
1
1
{ lib
2
2
, stdenv
3
3
-
, fetchFromGitHub
4
3
, buildPythonPackage
4
4
+
, fetchFromGitHub
5
5
, pytestCheckHook
6
6
+
, pythonOlder
6
7
, sysctl
7
8
}:
8
9
9
10
buildPythonPackage rec {
10
11
pname = "py-cpuinfo";
11
11
-
version = "8.0.0";
12
12
+
version = "9.0.0";
13
13
+
format = "setuptools";
14
14
+
15
15
+
disabled = pythonOlder "3.7";
12
16
13
17
src = fetchFromGitHub {
14
18
owner = "workhorsy";
15
19
repo = pname;
16
20
rev = "v${version}";
17
17
-
sha256 = "sha256-Mgzj1HTasUNHeHMVwV6d+TeyVqnBNUwCJ1EC3kfovf8=";
21
21
+
hash = "sha256-Q5u0guAqDVhf6bvJTzNvCpWbIzjxxAjE7s0OuXj9T4Q=";
18
22
};
19
23
20
24
checkInputs = [
···
32
28
--replace "_run_and_get_stdout(['sysctl'" "_run_and_get_stdout(['${sysctl}/bin/sysctl'"
33
29
'';
34
30
35
35
-
pythonImportsCheck = [ "cpuinfo" ];
31
31
+
pythonImportsCheck = [
32
32
+
"cpuinfo"
33
33
+
];
36
34
37
35
meta = with lib; {
38
36
description = "Get CPU info with pure Python";