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