biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / pcodedmp / default.nix
blobeef04412632a0c79a2516b07bd15d7a5e132e581
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pythonOlder,
6 }:
8 buildPythonPackage rec {
9   pname = "pcodedmp";
10   version = "1.2.6";
11   format = "setuptools";
13   disabled = pythonOlder "3.8";
15   src = fetchFromGitHub {
16     owner = "bontchev";
17     repo = pname;
18     rev = version;
19     hash = "sha256-SYOFGMvrzxDPMACaCvqwU28Mh9LEuvFBGvAph4X+geo=";
20   };
22   postPatch = ''
23     # Circular dependency
24     substituteInPlace setup.py \
25       --replace "'oletools>=0.54'," ""
26   '';
28   # Module doesn't have tests
29   doCheck = false;
31   pythonImportsCheck = [ "pcodedmp" ];
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   };