10 buildPythonPackage rec {
15 disabled = pythonOlder "3.7";
17 src = fetchFromGitHub {
20 rev = "refs/tags/v${version}";
21 hash = "sha256-dp569Tp8E5/avQpYvhPNPgS/A+q2e/ie+7BR7h2Ip+I=";
24 nativeBuildInputs = [ setuptools ];
26 propagatedBuildInputs = [ setuptools ];
28 nativeCheckInputs = [ unittestCheckHook ];
30 pythonImportsCheck = [ "cpufeature" ];
33 # Change into the test directory due to a relative resource path
38 description = "Python module for detection of CPU features";
39 homepage = "https://github.com/robbmcleod/cpufeature";
40 license = licenses.cc0;
41 maintainers = with maintainers; [ fab ];