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