summary refs log tree commit diff
path: root/pkgs/development/python-modules/ropper/default.nix
blob: 1bc393fd44eed32fb9f8e36c2025d8d1f1c5a408 (plain) (blame)
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
{ stdenv
, lib
, buildPythonPackage
, fetchFromGitHub
, capstone
, filebytes
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
  pname = "ropper";
  version = "1.13.8";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "sashs";
    repo = "Ropper";
    rev = "v${version}";
    hash = "sha256-agbqP5O9QEP5UKkaWI5HxAlMsCBPKNSLnAAo2WFDXS8=";
  };

  propagatedBuildInputs = [
    capstone
    filebytes
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "ropper"
  ];

  meta = with lib; {
    description = "Show information about files in different file formats";
    homepage = "https://scoding.de/ropper/";
    license = licenses.bsd3;
    maintainers = with maintainers; [ bennofs ];
    broken = stdenv.isDarwin;
  };
}