2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonApplication
|
|
|
|
, fetchPypi
|
|
|
|
, capstone
|
|
|
|
, filebytes
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "ropper";
|
2021-03-09 03:18:52 +00:00
|
|
|
version = "1.13.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-09 03:18:52 +00:00
|
|
|
sha256 = "6e4226f5ef01951c7df87029535e051c6deb3f156f7511613fb69e8a7f4801fb";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
# XXX tests rely on user-writeable /dev/shm to obtain process locks and return PermissionError otherwise
|
|
|
|
# workaround: sudo chmod 777 /dev/shm
|
|
|
|
checkPhase = ''
|
|
|
|
py.test testcases
|
|
|
|
'';
|
|
|
|
doCheck = false; # Tests not included in archive
|
|
|
|
|
|
|
|
checkInputs = [pytest];
|
|
|
|
propagatedBuildInputs = [ capstone filebytes ];
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://scoding.de/ropper/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
description = "Show information about files in different file formats";
|
|
|
|
maintainers = with maintainers; [ bennofs ];
|
|
|
|
};
|
|
|
|
}
|