ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / pcodedmp / default.nix
blob84f230f5852f68d0d3d1df80a1fde493edb26456
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
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     sha256 = "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 = [
32     "pcodedmp"
33   ];
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   };