1{ stdenv
2, buildPythonApplication
3, fetchPypi
4, capstone
5, filebytes
6, pytest
7}:
8
9buildPythonApplication rec {
10 pname = "ropper";
11 version = "1.11.6";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "33777d0c3ddd9ca7bc48f53dbe2c4a222a567f1125c43b1c34fb1b360d0b19dc";
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}