depot/third_party/nixpkgs/pkgs/development/python-modules/archinfo/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

39 lines
848 B
Nix

{
lib,
backports-strenum,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "archinfo";
version = "9.2.107";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "angr";
repo = "archinfo";
rev = "refs/tags/v${version}";
hash = "sha256-D29ddBceo4Bz3KUiQckdbV0e9uPXEOAAIHZrSpqw3BE=";
};
build-system = [ setuptools ];
dependencies = lib.optionals (pythonOlder "3.11") [ backports-strenum ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "archinfo" ];
meta = with lib; {
description = "Classes with architecture-specific information";
homepage = "https://github.com/angr/archinfo";
license = with licenses; [ bsd2 ];
maintainers = with maintainers; [ fab ];
};
}