nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, angr
3, buildPythonPackage
4, fetchFromGitHub
5, progressbar
6, pythonOlder
7, tqdm
8}:
9
10buildPythonPackage rec {
11 pname = "angrop";
12 version = "9.2.4";
13 format = "pyproject";
14
15 disabled = pythonOlder "3.6";
16
17 src = fetchFromGitHub {
18 owner = "angr";
19 repo = pname;
20 rev = "v${version}";
21 hash = "sha256-EMW2RxImYoPSnkBG027g5o5K3WT40F/Dj+GzqS8/K6g=";
22 };
23
24 propagatedBuildInputs = [
25 angr
26 progressbar
27 tqdm
28 ];
29
30 # Tests have additional requirements, e.g., angr binaries
31 # cle is executing the tests with the angr binaries already and is a requirement of angr
32 doCheck = false;
33
34 pythonImportsCheck = [
35 "angrop"
36 ];
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}