1{
2 stdenv,
3 lib,
4 buildPythonPackage,
5 fetchFromGitHub,
6 capstone,
7 filebytes,
8 pytestCheckHook,
9 pythonOlder,
10}:
11
12buildPythonPackage rec {
13 pname = "ropper";
14 version = "1.13.8";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "sashs";
21 repo = "Ropper";
22 rev = "v${version}";
23 hash = "sha256-agbqP5O9QEP5UKkaWI5HxAlMsCBPKNSLnAAo2WFDXS8=";
24 };
25
26 propagatedBuildInputs = [
27 capstone
28 filebytes
29 ];
30
31 nativeCheckInputs = [ pytestCheckHook ];
32
33 pythonImportsCheck = [ "ropper" ];
34
35 meta = with lib; {
36 description = "Show information about files in different file formats";
37 mainProgram = "ropper";
38 homepage = "https://scoding.de/ropper/";
39 license = licenses.bsd3;
40 maintainers = with maintainers; [ bennofs ];
41 broken = stdenv.isDarwin;
42 };
43}