1{ lib
2, angr
3, buildPythonPackage
4, fetchFromGitHub
5, progressbar
6, pythonOlder
7, tqdm
8}:
9
10buildPythonPackage rec {
11 pname = "angrop";
12 version = "9.0.10576";
13 disabled = pythonOlder "3.6";
14
15 src = fetchFromGitHub {
16 owner = "angr";
17 repo = pname;
18 rev = "v${version}";
19 sha256 = "sha256-i4F6VyJYJ6XON9G43Z2VwWAPHGRxR9DzxnEDGiJ8LSE=";
20 };
21
22 propagatedBuildInputs = [
23 angr
24 progressbar
25 tqdm
26 ];
27
28 # Tests have additional requirements, e.g., angr binaries
29 # cle is executing the tests with the angr binaries already and is a requirement of angr
30 doCheck = false;
31 pythonImportsCheck = [ "angrop" ];
32
33 meta = with lib; {
34 description = "ROP gadget finder and chain builder";
35 homepage = "https://github.com/angr/angrop";
36 license = with licenses; [ bsd2 ];
37 maintainers = with maintainers; [ fab ];
38 };
39}