2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2017-05-17 13:57:33 +01:00
|
|
|
, buildPythonApplication
|
|
|
|
, fetchPypi
|
|
|
|
, capstone
|
|
|
|
, filebytes
|
2017-12-31 10:20:34 +00:00
|
|
|
, pytest
|
|
|
|
}:
|
2017-05-17 13:57:33 +01:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "ropper";
|
2021-02-20 09:09:16 +00:00
|
|
|
version = "1.13.6";
|
2017-05-17 13:57:33 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-20 09:09:16 +00:00
|
|
|
sha256 = "6e4226f5ef01951c7df87029535e051c6deb3f156f7511613fb69e8a7f4801fb";
|
2017-05-17 13:57:33 +01:00
|
|
|
};
|
2017-07-19 12:31:02 +01: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 13:57:33 +01:00
|
|
|
checkPhase = ''
|
|
|
|
py.test testcases
|
|
|
|
'';
|
2017-12-31 10:20:34 +00:00
|
|
|
doCheck = false; # Tests not included in archive
|
|
|
|
|
|
|
|
checkInputs = [pytest];
|
2017-05-17 13:57:33 +01:00
|
|
|
propagatedBuildInputs = [ capstone filebytes ];
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://scoding.de/ropper/";
|
2019-05-11 18:50:13 +01:00
|
|
|
license = licenses.bsd3;
|
2017-05-17 13:57:33 +01:00
|
|
|
description = "Show information about files in different file formats";
|
|
|
|
maintainers = with maintainers; [ bennofs ];
|
|
|
|
};
|
|
|
|
}
|