Merge pull request #140464 from fabaff/bump-distorm

authored by Sandro and committed by GitHub a466bcce 3f230ddf

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