2021-04-25 03:57:28 +00:00
|
|
|
{ lib
|
|
|
|
, angr
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, progressbar
|
|
|
|
, pythonOlder
|
2021-05-28 09:39:13 +00:00
|
|
|
, tqdm
|
2021-04-25 03:57:28 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "angrop";
|
2021-12-24 04:21:11 +00:00
|
|
|
version = "9.1.10913";
|
2021-04-25 03:57:28 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "angr";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-12-24 04:21:11 +00:00
|
|
|
sha256 = "sha256-8M3d8lG7jDNgICjzjFRi9Wl2I7aYI5b5IvjEhixsk9k=";
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
angr
|
|
|
|
progressbar
|
2021-05-28 09:39:13 +00:00
|
|
|
tqdm
|
2021-04-25 03:57:28 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|