about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pcodedmp/default.nix
blob: c87cebe0f23ba567b01383dc4a18290c51120ccb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
  pname = "pcodedmp";
  version = "1.2.6";
  format = "setuptools";

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "bontchev";
    repo = pname;
    rev = version;
    hash = "sha256-SYOFGMvrzxDPMACaCvqwU28Mh9LEuvFBGvAph4X+geo=";
  };

  postPatch = ''
    # Circular dependency
    substituteInPlace setup.py \
      --replace "'oletools>=0.54'," ""
  '';

  # Module doesn't have tests
  doCheck = false;

  pythonImportsCheck = [
    "pcodedmp"
  ];

  meta = with lib; {
    description = "Python VBA p-code disassembler";
    homepage = "https://github.com/bontchev/pcodedmp";
    license = with licenses; [ gpl3Only ];
    maintainers = with maintainers; [ fab ];
  };
}