81047829ea
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
44 lines
882 B
Nix
44 lines
882 B
Nix
{ lib
|
|
, angr
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, progressbar
|
|
, pythonOlder
|
|
, tqdm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "angrop";
|
|
version = "9.1.11752";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "angr";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-nZGAuWp07VMpOvqw38FGSiUhaFjJOfCzOaam4Ex7qbY=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
angr
|
|
progressbar
|
|
tqdm
|
|
];
|
|
|
|
# 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 ];
|
|
};
|
|
}
|