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