Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / graphtage / default.nix
blob8b5e27a24134887d397d93a050d17cb2d2bdafce
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.0";
19   disabled = pythonOlder "3.6";
21   src = fetchFromGitHub {
22     owner = "trailofbits";
23     repo = pname;
24     rev = "refs/tags/v${version}";
25     hash = "sha256-rzX5pSSPm3CjpnCm0gxsgUaeXho9dP7WTanCzBK6Yps=";
26   };
28   postPatch = ''
29     substituteInPlace setup.py \
30       --replace "json5==0.9.5" "json5>=0.9.5"
31   '';
33   propagatedBuildInputs = [
34     colorama
35     intervaltree
36     json5
37     pyyaml
38     scipy
39     tqdm
40     typing-extensions
41   ];
43   nativeCheckInputs = [
44     pytestCheckHook
45   ];
47   pythonImportsCheck = [
48     "graphtage"
49   ];
51   meta = with lib; {
52     description = "A utility to diff tree-like files such as JSON and XML";
53     homepage = "https://github.com/trailofbits/graphtage";
54     changelog = "https://github.com/trailofbits/graphtage/releases/tag/v${version}";
55     license = licenses.lgpl3Plus;
56     maintainers = with maintainers; [ veehaitch ];
57   };