2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
backports-strenum,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2021-01-09 10:05:03 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "archinfo";
|
2024-09-26 11:04:55 +00:00
|
|
|
version = "9.2.119";
|
2023-10-19 13:55:26 +00:00
|
|
|
pyproject = true;
|
2022-01-19 23:45:15 +00:00
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "angr";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "archinfo";
|
2023-03-30 22:05:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-09-26 11:04:55 +00:00
|
|
|
hash = "sha256-81vaHTzRCOw8C/KHwFSEMGOWEwpHVK0HicGVi9j4MqU=";
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [ setuptools ];
|
2022-09-30 11:47:45 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = lib.optionals (pythonOlder "3.11") [ backports-strenum ];
|
2023-10-19 13:55:26 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-01-09 10:05:03 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonImportsCheck = [ "archinfo" ];
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Classes with architecture-specific information";
|
|
|
|
homepage = "https://github.com/angr/archinfo";
|
|
|
|
license = with licenses; [ bsd2 ];
|
2022-04-27 09:35:20 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
|
|
|
}
|