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