python38Packages.py-cpuinfo: aarch64-darwin support

This commit is contained in:
Ivan Babrou 2021-02-27 23:26:43 -08:00
parent cb8e6774de
commit 5ce1b566dc

View File

@ -1,5 +1,6 @@
{ lib { lib
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, buildPythonPackage , buildPythonPackage
, pytestCheckHook , pytestCheckHook
}: }:
@ -15,6 +16,14 @@ buildPythonPackage rec {
sha256 = "10qfaibyb2syiwiyv74l7d97vnmlk079qirgnw3ncklqjs0s3gbi"; 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 = [ checkInputs = [
pytestCheckHook pytestCheckHook
]; ];