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