2021-04-25 03:57:28 +00:00
|
|
|
{ lib
|
|
|
|
, angr
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, progressbar
|
|
|
|
, pythonOlder
|
2023-03-04 12:14:45 +00:00
|
|
|
, setuptools
|
2021-05-28 09:39:13 +00:00
|
|
|
, tqdm
|
2021-04-25 03:57:28 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "angrop";
|
2023-03-04 12:14:45 +00:00
|
|
|
version = "9.2.8";
|
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;
|
2023-03-04 12:14:45 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-zmWdGbFzwLDP7MUqEprZcIgA7lAdCrafWYohAehJyh0=";
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
nativeBuildInputs = [
|
2023-03-04 12:14:45 +00:00
|
|
|
setuptools
|
2022-06-26 10:26:21 +00:00
|
|
|
];
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|