2017-05-17 14:57:33 +02:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonApplication
|
|
|
|
, fetchPypi
|
|
|
|
, capstone
|
|
|
|
, filebytes
|
|
|
|
, pytest }:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "ropper";
|
2017-12-30 12:27:00 +01:00
|
|
|
version = "1.11.2";
|
2017-05-17 14:57:33 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-12-30 12:27:00 +01:00
|
|
|
sha256 = "2183feedfe8b01a27301eee07383b481ece01b2319bdba3afebe33e19ca14aa3";
|
2017-05-17 14:57:33 +02:00
|
|
|
};
|
2017-07-19 13:31:02 +02: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 14:57:33 +02:00
|
|
|
checkPhase = ''
|
|
|
|
py.test testcases
|
|
|
|
'';
|
|
|
|
buildInputs = [pytest];
|
|
|
|
propagatedBuildInputs = [ capstone filebytes ];
|
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = https://scoding.de/ropper/;
|
2017-05-17 14:57:33 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
description = "Show information about files in different file formats";
|
|
|
|
maintainers = with maintainers; [ bennofs ];
|
|
|
|
};
|
|
|
|
}
|