1{ stdenv
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.7";
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-3tWWIYqh/G/b7Z6BMua5bRvtSh4SibT6pv/NArhmqPE=";
23 };
24
25 propagatedBuildInputs = [
26 capstone
27 filebytes
28 ];
29
30 checkInputs = [
31 pytestCheckHook
32 ];
33
34 pythonImportsCheck = [
35 "ropper"
36 ];
37
38 meta = with lib; {
39 broken = stdenv.isDarwin;
40 description = "Show information about files in different file formats";
41 homepage = "https://scoding.de/ropper/";
42 license = licenses.bsd3;
43 maintainers = with maintainers; [ bennofs ];
44 };
45}