nixpkgs/pkgs/development/python-modules/ropper/default.nix

33 lines
840 B
Nix
Raw Normal View History

2017-05-17 14:57:33 +02:00
{ stdenv
, buildPythonApplication
, fetchPypi
, capstone
, filebytes
2017-12-31 11:20:34 +01:00
, pytest
}:
2017-05-17 14:57:33 +02:00
buildPythonApplication rec {
pname = "ropper";
2018-11-04 11:35:16 +01:00
version = "1.11.8";
2017-05-17 14:57:33 +02:00
src = fetchPypi {
inherit pname version;
2018-11-04 11:35:16 +01:00
sha256 = "f2ba5ff34ebc5faaa87d34b58178706a13a08e848126197c0fdb0af7822f93a2";
2017-05-17 14:57:33 +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
'';
2017-12-31 11:20:34 +01:00
doCheck = false; # Tests not included in archive
checkInputs = [pytest];
2017-05-17 14:57:33 +02:00
propagatedBuildInputs = [ capstone filebytes ];
meta = with stdenv.lib; {
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 ];
};
}