1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, pytestCheckHook 6, yasm 7}: 8 9buildPythonPackage rec { 10 pname = "distorm3"; 11 version = "3.5.2"; 12 13 disabled = pythonOlder "3.5"; 14 15 src = fetchFromGitHub { 16 owner = "gdabah"; 17 repo = "distorm"; 18 rev = version; 19 sha256 = "012bh1l2w7i9q8rcnznj3x0lra09d5yxd3r42cbrqdwl1mmg26qn"; 20 }; 21 22 nativeCheckInputs = [ 23 pytestCheckHook 24 yasm 25 ]; 26 27 disabledTests = [ 28 # TypeError: __init__() missing 3 required positional... 29 "test_dummy" 30 ]; 31 32 pythonImportsCheck = [ "distorm3" ]; 33 34 meta = with lib; { 35 description = "Disassembler library for x86/AMD64"; 36 homepage = "https://github.com/gdabah/distorm"; 37 license = licenses.bsd3; 38 maintainers = with maintainers; [ fab ]; 39 }; 40}