Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 17.09 821 B view raw
1{ stdenv 2, buildPythonApplication 3, fetchPypi 4, capstone 5, filebytes 6, pytest }: 7 8buildPythonApplication rec { 9 name = "${pname}-${version}"; 10 pname = "ropper"; 11 version = "1.10.10"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "1676e07947a19df9d17002307a7555c2647a4224d6f2869949e8fc4bd18f2e87"; 16 }; 17 # XXX tests rely on user-writeable /dev/shm to obtain process locks and return PermissionError otherwise 18 # workaround: sudo chmod 777 /dev/shm 19 checkPhase = '' 20 py.test testcases 21 ''; 22 buildInputs = [pytest]; 23 propagatedBuildInputs = [ capstone filebytes ]; 24 meta = with stdenv.lib; { 25 homepage = https://scoding.de/ropper/; 26 license = licenses.gpl2; 27 description = "Show information about files in different file formats"; 28 maintainers = with maintainers; [ bennofs ]; 29 }; 30}