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.154";
14 pyproject = true;
15
16 disabled = pythonOlder "3.12";
17
18 src = fetchFromGitHub {
19 owner = "angr";
20 repo = "archinfo";
21 tag = "v${version}";
22 hash = "sha256-Vks7Rjd8x2zeHnJPs0laH56S4b8pnR1cK82SpK+XOgE=";
23 };
24
25 build-system = [ setuptools ];
26
27 nativeCheckInputs = [ pytestCheckHook ];
28
29 pythonImportsCheck = [ "archinfo" ];
30
31 meta = with lib; {
32 description = "Classes with architecture-specific information";
33 homepage = "https://github.com/angr/archinfo";
34 license = licenses.bsd2;
35 maintainers = with maintainers; [ fab ];
36 };
37}