depot/third_party/nixpkgs/pkgs/development/python-modules/angrop/default.nix
Default email 889482aab3 Project import generated by Copybara.
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
2022-06-26 12:26:21 +02:00

53 lines
992 B
Nix

{ lib
, angr
, buildPythonPackage
, fetchFromGitHub
, progressbar
, pythonOlder
, pythonRelaxDepsHook
, tqdm
}:
buildPythonPackage rec {
pname = "angrop";
version = "9.2.6";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "angr";
repo = pname;
rev = "v${version}";
hash = "sha256-qaDAicmYZxLPTl17il61ij01prRv2H4xxe07Xg4KWhI=";
};
nativeBuildInputs = [
pythonRelaxDepsHook
];
propagatedBuildInputs = [
angr
progressbar
tqdm
];
pythonRelaxDeps = [
"angr"
];
# Tests have additional requirements, e.g., angr binaries
# cle is executing the tests with the angr binaries already and is a requirement of angr
doCheck = false;
pythonImportsCheck = [
"angrop"
];
meta = with lib; {
description = "ROP gadget finder and chain builder";
homepage = "https://github.com/angr/angrop";
license = with licenses; [ bsd2 ];
maintainers = with maintainers; [ fab ];
};
}