at master 825 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6}: 7 8buildPythonPackage rec { 9 pname = "pcodedmp"; 10 version = "1.2.6"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.8"; 14 15 src = fetchFromGitHub { 16 owner = "bontchev"; 17 repo = "pcodedmp"; 18 rev = version; 19 hash = "sha256-SYOFGMvrzxDPMACaCvqwU28Mh9LEuvFBGvAph4X+geo="; 20 }; 21 22 postPatch = '' 23 # Circular dependency 24 substituteInPlace setup.py \ 25 --replace "'oletools>=0.54'," "" 26 ''; 27 28 # Module doesn't have tests 29 doCheck = false; 30 31 pythonImportsCheck = [ "pcodedmp" ]; 32 33 meta = with lib; { 34 description = "Python VBA p-code disassembler"; 35 mainProgram = "pcodedmp"; 36 homepage = "https://github.com/bontchev/pcodedmp"; 37 license = with licenses; [ gpl3Only ]; 38 maintainers = with maintainers; [ fab ]; 39 }; 40}