1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6, setuptools 7}: 8 9buildPythonPackage rec { 10 pname = "archinfo"; 11 version = "9.2.25"; 12 format = "pyproject"; 13 14 disabled = pythonOlder "3.8"; 15 16 src = fetchFromGitHub { 17 owner = "angr"; 18 repo = pname; 19 rev = "v${version}"; 20 hash = "sha256-9uOv7h5UUWIZTWB7A+7ikG6ReE1FBHIeNAVY6QBhzmE="; 21 }; 22 23 nativeBuildInputs = [ 24 setuptools 25 ]; 26 27 checkInputs = [ 28 pytestCheckHook 29 ]; 30 31 pythonImportsCheck = [ 32 "archinfo" 33 ]; 34 35 meta = with lib; { 36 description = "Classes with architecture-specific information"; 37 homepage = "https://github.com/angr/archinfo"; 38 license = with licenses; [ bsd2 ]; 39 maintainers = with maintainers; [ fab ]; 40 }; 41}