1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 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 = pname; 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 = [ 32 "pcodedmp" 33 ]; 34 35 meta = with lib; { 36 description = "Python VBA p-code disassembler"; 37 homepage = "https://github.com/bontchev/pcodedmp"; 38 license = with licenses; [ gpl3Only ]; 39 maintainers = with maintainers; [ fab ]; 40 }; 41}