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