2017-05-17 05:57:33 -07:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonApplication
|
|
|
|
, fetchPypi
|
|
|
|
, capstone
|
|
|
|
, filebytes
|
2017-12-31 02:20:34 -08:00
|
|
|
, pytest
|
|
|
|
}:
|
2017-05-17 05:57:33 -07:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "ropper";
|
2019-04-16 10:15:40 -07:00
|
|
|
version = "1.11.13";
|
2017-05-17 05:57:33 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-04-16 10:15:40 -07:00
|
|
|
sha256 = "245c6a1c8b294209bed039cd6a389f1e298d3fe6783d48ad9c6b2df3a41f51ee";
|
2017-05-17 05:57:33 -07:00
|
|
|
};
|
2017-07-19 04:31:02 -07:00
|
|
|
# XXX tests rely on user-writeable /dev/shm to obtain process locks and return PermissionError otherwise
|
|
|
|
# workaround: sudo chmod 777 /dev/shm
|
2017-05-17 05:57:33 -07:00
|
|
|
checkPhase = ''
|
|
|
|
py.test testcases
|
|
|
|
'';
|
2017-12-31 02:20:34 -08:00
|
|
|
doCheck = false; # Tests not included in archive
|
|
|
|
|
|
|
|
checkInputs = [pytest];
|
2017-05-17 05:57:33 -07:00
|
|
|
propagatedBuildInputs = [ capstone filebytes ];
|
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 13:03:30 -07:00
|
|
|
homepage = https://scoding.de/ropper/;
|
2017-05-17 05:57:33 -07:00
|
|
|
license = licenses.gpl2;
|
|
|
|
description = "Show information about files in different file formats";
|
|
|
|
maintainers = with maintainers; [ bennofs ];
|
|
|
|
};
|
|
|
|
}
|