1{ 2 lib, 3 backports-strenum, 4 buildPythonPackage, 5 fetchFromGitHub, 6 pytestCheckHook, 7 pythonOlder, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "archinfo"; 13 version = "9.2.102"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.8"; 17 18 src = fetchFromGitHub { 19 owner = "angr"; 20 repo = "archinfo"; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-aZwU/i1tBT6M5+PNR77vYzPKklWERXhvG1kknwC0RQQ="; 23 }; 24 25 build-system = [ setuptools ]; 26 27 dependencies = lib.optionals (pythonOlder "3.11") [ backports-strenum ]; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 30 31 pythonImportsCheck = [ "archinfo" ]; 32 33 meta = with lib; { 34 description = "Classes with architecture-specific information"; 35 homepage = "https://github.com/angr/archinfo"; 36 license = with licenses; [ bsd2 ]; 37 maintainers = with maintainers; [ fab ]; 38 }; 39}