1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 capstone,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "ropgadget";
11 version = "7.4";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "JonathanSalwan";
18 repo = "ROPgadget";
19 rev = "refs/tags/v${version}";
20 hash = "sha256-6m8opcTM4vrK+VCPXxNhZttUq6YmS8swLUDhjyfinWE=";
21 };
22
23 propagatedBuildInputs = [ capstone ];
24
25 # Test suite is working with binaries
26 doCheck = false;
27
28 pythonImportsCheck = [ "ropgadget" ];
29
30 meta = with lib; {
31 description = "Tool to search for gadgets in binaries to facilitate ROP exploitation";
32 mainProgram = "ROPgadget";
33 homepage = "http://shell-storm.org/project/ROPgadget/";
34 license = licenses.bsd3;
35 maintainers = with maintainers; [ bennofs ];
36 };
37}