Merge pull request #114617 from bobrik/ivan/py-cpuinfo-aarch64-darwin

python38Packages.py-cpuinfo: aarch64-darwin support
This commit is contained in:
Sandro 2021-02-28 17:34:46 +01:00 committed by GitHub
commit 60397e7f53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -1,5 +1,6 @@
{ lib
, fetchFromGitHub
, fetchpatch
, buildPythonPackage
, pytestCheckHook
}:
@ -15,6 +16,14 @@ buildPythonPackage rec {
sha256 = "10qfaibyb2syiwiyv74l7d97vnmlk079qirgnw3ncklqjs0s3gbi";
};
patches = [
# Make it detect Apple Silicon, remove after https://github.com/workhorsy/py-cpuinfo/pull/161 is merged.
(fetchpatch {
url = "https://github.com/workhorsy/py-cpuinfo/commit/54c32da6678f9d75ec5acf4534056cdc85c2a04d.patch";
sha256 = "sha256-3R46KrpACAQ1V0CQtz48V5mQXxvplUQrXnACtiE8WqY=";
})
];
checkInputs = [
pytestCheckHook
];