1{ stdenv
2, buildPythonApplication
3, fetchPypi
4, capstone
5, filebytes
6, pytest
7}:
8
9buildPythonApplication rec {
10 pname = "ropper";
11 version = "1.11.10";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "b8d1439d8a6ef7b93718472b0288ee88a5953723046772f035fe989b1c1e5d6e";
16 };
17 # XXX tests rely on user-writeable /dev/shm to obtain process locks and return PermissionError otherwise
18 # workaround: sudo chmod 777 /dev/shm
19 checkPhase = ''
20 py.test testcases
21 '';
22 doCheck = false; # Tests not included in archive
23
24 checkInputs = [pytest];
25 propagatedBuildInputs = [ capstone filebytes ];
26 meta = with stdenv.lib; {
27 homepage = https://scoding.de/ropper/;
28 license = licenses.gpl2;
29 description = "Show information about files in different file formats";
30 maintainers = with maintainers; [ bennofs ];
31 };
32}