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";
|
2022-01-27 00:19:43 +00:00
|
|
|
version = "9.1.11611";
|
2022-01-19 23:45:15 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2021-04-25 03:57:28 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "angr";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-01-27 00:19:43 +00:00
|
|
|
hash = "sha256-hG/Im+gYBXIs1o7cw6LDS9nb2HPYjnSd7g8bpVG6rkE=";
|
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;
|
2022-01-19 23:45:15 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"angrop"
|
|
|
|
];
|
2021-04-25 03:57:28 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "ROP gadget finder and chain builder";
|
|
|
|
homepage = "https://github.com/angr/angrop";
|
|
|
|
license = with licenses; [ bsd2 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|