Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 32 lines 840 B view raw
1{ stdenv 2, buildPythonApplication 3, fetchPypi 4, capstone 5, filebytes 6, pytest 7}: 8 9buildPythonApplication rec { 10 pname = "ropper"; 11 version = "1.13.3"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "dfc87477c0f53d3d2836a384c106373d761cc435eafc477f299523e5404dda43"; 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 doCheck = false; # Tests not included in archive 23 24 checkInputs = [pytest]; 25 propagatedBuildInputs = [ capstone filebytes ]; 26 meta = with stdenv.lib; { 27 homepage = https://scoding.de/ropper/; 28 license = licenses.bsd3; 29 description = "Show information about files in different file formats"; 30 maintainers = with maintainers; [ bennofs ]; 31 }; 32}