1{ lib
2, buildPythonApplication
3, fetchPypi
4, capstone
5, filebytes
6, pytest
7}:
8
9buildPythonApplication rec {
10 pname = "ropper";
11 version = "1.13.6";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "6e4226f5ef01951c7df87029535e051c6deb3f156f7511613fb69e8a7f4801fb";
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 lib; {
27 homepage = "https://scoding.de/ropper/";
28 license = licenses.bsd3;
29 description = "Show information about files in different file formats";
30 maintainers = with maintainers; [ bennofs ];
31 };
32}