summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/ropper/default.nix
blob: ca0e7eaf0d51efa94a27c2c4f1b2b36d2ce2112c (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
42
43
44
45
46
47
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  capstone,
  filebytes,
  keystone-engine,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "ropper";
  version = "1.13.13";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "sashs";
    repo = "Ropper";
    tag = "v${version}";
    hash = "sha256-MOAbACLDdeKCMV4K/n1rAQlxDN0JoDIiUF6Zr3yPw8o=";
  };

  build-system = [ setuptools ];

  dependencies = [
    capstone
    filebytes
  ];

  optional-dependencies = {
    ropchain = [ keystone-engine ];
  };

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "ropper" ];

  meta = {
    description = "Show information about files in different file formats";
    homepage = "https://scoding.de/ropper/";
    changelog = "https://github.com/sashs/Ropper/releases/tag/${src.tag}";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ bennofs ];
    mainProgram = "ropper";
  };
}