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