2021-04-23 12:28:44 +01:00
|
|
|
{ lib
|
|
|
|
, angr
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, progressbar
|
|
|
|
, pythonOlder
|
2021-05-24 00:12:09 +01:00
|
|
|
, tqdm
|
2021-04-23 12:28:44 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "angrop";
|
2021-08-03 20:29:41 +01:00
|
|
|
version = "9.0.9355";
|
2021-04-23 12:28:44 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "angr";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-08-03 20:29:41 +01:00
|
|
|
sha256 = "1fs31yd8hhkrrx4gsq13fb5fqi86688pazpmsnsga7hznv60s2ks";
|
2021-04-23 12:28:44 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
angr
|
|
|
|
progressbar
|
2021-05-24 00:12:09 +01:00
|
|
|
tqdm
|
2021-04-23 12:28:44 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|