biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / cfn-lint / default.nix
blobd0325a5c21ea2848d00381d7d28ca6bf1f903af2
2   lib,
3   aws-sam-translator,
4   buildPythonPackage,
5   fetchFromGitHub,
6   jschema-to-python,
7   jsonpatch,
8   jsonschema,
9   junit-xml,
10   mock,
11   networkx,
12   pydot,
13   pytestCheckHook,
14   pythonOlder,
15   pyyaml,
16   regex,
17   sarif-om,
18   sympy,
21 buildPythonPackage rec {
22   pname = "cfn-lint";
23   version = "0.87.7";
24   format = "setuptools";
26   disabled = pythonOlder "3.8";
28   src = fetchFromGitHub {
29     owner = "aws-cloudformation";
30     repo = "cfn-lint";
31     rev = "refs/tags/v${version}";
32     hash = "sha256-em6Vi9zIn8ikmcHVbljA1vr+R3t8ZpJ57p3Ix3bqMYU=";
33   };
35   propagatedBuildInputs = [
36     aws-sam-translator
37     jschema-to-python
38     jsonpatch
39     jsonschema
40     junit-xml
41     networkx
42     networkx
43     pyyaml
44     regex
45     sarif-om
46     sympy
47   ];
49   nativeCheckInputs = [
50     mock
51     pydot
52     pytestCheckHook
53   ];
55   preCheck = ''
56     export PATH=$out/bin:$PATH
57   '';
59   disabledTests = [
60     # Requires git directory
61     "test_update_docs"
62     # Tests depend on network access (fails in getaddrinfo)
63     "test_update_resource_specs_python_2"
64     "test_update_resource_specs_python_3"
65     "test_sarif_formatter"
66     # Some CLI tests fails
67     "test_bad_config"
68     "test_override_parameters"
69     "test_positional_template_parameters"
70     "test_template_config"
71   ];
73   pythonImportsCheck = [ "cfnlint" ];
75   meta = with lib; {
76     description = "Checks cloudformation for practices and behaviour that could potentially be improved";
77     mainProgram = "cfn-lint";
78     homepage = "https://github.com/aws-cloudformation/cfn-lint";
79     changelog = "https://github.com/aws-cloudformation/cfn-lint/blob/v${version}/CHANGELOG.md";
80     license = licenses.mit;
81     maintainers = [ ];
82   };