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