2021-04-25 03:57:28 +00:00
|
|
|
{ lib
|
|
|
|
, angr
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, progressbar
|
|
|
|
, pythonOlder
|
2022-06-26 10:26:21 +00:00
|
|
|
, pythonRelaxDepsHook
|
2021-05-28 09:39:13 +00:00
|
|
|
, tqdm
|
2021-04-25 03:57:28 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "angrop";
|
2022-09-22 12:36:57 +00:00
|
|
|
version = "9.2.7";
|
2022-04-27 09:35:20 +00:00
|
|
|
format = "pyproject";
|
2022-01-19 23:45:15 +00:00
|
|
|
|
2021-04-25 03:57:28 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "angr";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-09-22 12:36:57 +00:00
|
|
|
hash = "sha256-wIPk7Cz7FSPviPFBSLrBjLr9M0o3pyoJM7wiAhHrg9Q=";
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
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
|
|
|
];
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"angr"
|
|
|
|
];
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|