1{ stdenv 2, lib 3, buildPythonPackage 4, fetchFromGitHub 5, capstone 6, filebytes 7, pytestCheckHook 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "ropper"; 13 version = "1.13.8"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "sashs"; 20 repo = "Ropper"; 21 rev = "v${version}"; 22 hash = "sha256-agbqP5O9QEP5UKkaWI5HxAlMsCBPKNSLnAAo2WFDXS8="; 23 }; 24 25 propagatedBuildInputs = [ 26 capstone 27 filebytes 28 ]; 29 30 nativeCheckInputs = [ 31 pytestCheckHook 32 ]; 33 34 pythonImportsCheck = [ 35 "ropper" 36 ]; 37 38 meta = with lib; { 39 description = "Show information about files in different file formats"; 40 homepage = "https://scoding.de/ropper/"; 41 license = licenses.bsd3; 42 maintainers = with maintainers; [ bennofs ]; 43 broken = stdenv.isDarwin; 44 }; 45}