Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / graphtage / default.nix
blob815e6775c177ac417cdc90e4c6c481b605013418
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 , pythonOlder
6 , colorama
7 , intervaltree
8 , json5
9 , pyyaml
10 , scipy
11 , tqdm
12 , typing-extensions
15 buildPythonPackage rec {
16   pname = "graphtage";
17   version = "0.3.1";
18   format = "setuptools";
20   disabled = pythonOlder "3.6";
22   src = fetchFromGitHub {
23     owner = "trailofbits";
24     repo = pname;
25     rev = "refs/tags/v${version}";
26     hash = "sha256-Bz2T8tVdVOdXt23yPITkDNL46Y5LZPhY3SXZ5bF3CHw=";
27   };
29   postPatch = ''
30     substituteInPlace setup.py \
31       --replace "json5==0.9.5" "json5>=0.9.5"
32   '';
34   propagatedBuildInputs = [
35     colorama
36     intervaltree
37     json5
38     pyyaml
39     scipy
40     tqdm
41     typing-extensions
42   ];
44   nativeCheckInputs = [
45     pytestCheckHook
46   ];
48   pythonImportsCheck = [
49     "graphtage"
50   ];
52   meta = with lib; {
53     description = "A utility to diff tree-like files such as JSON and XML";
54     mainProgram = "graphtage";
55     homepage = "https://github.com/trailofbits/graphtage";
56     changelog = "https://github.com/trailofbits/graphtage/releases/tag/v${version}";
57     license = licenses.lgpl3Plus;
58     maintainers = with maintainers; [ veehaitch ];
59   };