1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-21 13:44:50 +00:00
nixpkgs/pkgs/development/python-modules/ropper/default.nix

33 lines
840 B
Nix
Raw Normal View History

2017-05-17 13:57:33 +01:00
{ stdenv
, 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";
2018-02-17 13:22:26 +00:00
version = "1.11.6";
2017-05-17 13:57:33 +01:00
src = fetchPypi {
inherit pname version;
2018-02-17 13:22:26 +00:00
sha256 = "33777d0c3ddd9ca7bc48f53dbe2c4a222a567f1125c43b1c34fb1b360d0b19dc";
2017-05-17 13:57:33 +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 ];
meta = with stdenv.lib; {
homepage = https://scoding.de/ropper/;
2017-05-17 13:57:33 +01:00
license = licenses.gpl2;
description = "Show information about files in different file formats";
maintainers = with maintainers; [ bennofs ];
};
}