ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / graphtage / default.nix
bloba1bec8f3a1f4004c7f54c470ce2a70e8368c6623
1 { buildPythonPackage
2 , fetchFromGitHub
3 , lib
4 , pytestCheckHook
5 , pythonOlder
6   # Python dependencies
7 , colorama
8 , intervaltree
9 , json5
10 , pyyaml
11 , scipy
12 , tqdm
13 , typing-extensions
16 buildPythonPackage rec {
17   pname = "graphtage";
18   version = "0.2.6";
19   disabled = pythonOlder "3.6";
21   src = fetchFromGitHub {
22     owner = "trailofbits";
23     repo = pname;
24     rev = "refs/tags/v${version}";
25     sha256 = "sha256-ZazqtrrCsoeJK7acj7Unpl+ZI2JL/khMN2aOSHdCHl0=";
26   };
28   propagatedBuildInputs = [
29     colorama
30     intervaltree
31     json5
32     pyyaml
33     scipy
34     tqdm
35     typing-extensions
36   ];
38   checkInputs = [ pytestCheckHook ];
40   postPatch = ''
41     substituteInPlace setup.py \
42       --replace "json5==0.9.5" "json5>=0.9.5"
43   '';
45   pythonImportsCheck = [ "graphtage" ];
47   meta = with lib; {
48     homepage = "https://github.com/trailofbits/graphtage";
49     description = "A utility to diff tree-like files such as JSON and XML";
50     license = licenses.lgpl3Plus;
51     maintainers = with maintainers; [ veehaitch ];
52   };