summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/angrop/default.nix
blob: 986314ab3085f5dab80123db6ac94e27cc91dc83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
  lib,
  angr,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  tqdm,
}:

buildPythonPackage rec {
  pname = "angrop";
  version = "9.2.12.post3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "angr";
    repo = "angrop";
    tag = "v${version}";
    hash = "sha256-t4JjI6mWX/Us4dHcVXPAUGms8SEE6MVhteQMPi8p5Zo=";
  };

  build-system = [ setuptools ];

  dependencies = [
    angr
    tqdm
  ];

  # Tests have additional requirements, e.g., angr binaries
  # cle is executing the tests with the angr binaries already and is a requirement of angr
  doCheck = false;

  pythonImportsCheck = [ "angrop" ];

  meta = {
    description = "ROP gadget finder and chain builder";
    homepage = "https://github.com/angr/angrop";
    license = with lib.licenses; [ bsd2 ];
    maintainers = with lib.maintainers; [ fab ];
  };
}