939244d6dd
Bisected to 252225814ab5f11143a02e8aad9459c2d9f498cd on staging-next-26.05. (cherry picked from commit eb643cb18ca43227504637f5c5d6e93234510abb)
92 lines
2.1 KiB
Nix
92 lines
2.1 KiB
Nix
{
|
|
lib,
|
|
aws-sam-translator,
|
|
buildPythonPackage,
|
|
defusedxml,
|
|
fetchFromGitHub,
|
|
jschema-to-python,
|
|
jsonpatch,
|
|
junit-xml,
|
|
mock,
|
|
networkx,
|
|
pydot,
|
|
pytestCheckHook,
|
|
pyyaml,
|
|
regex,
|
|
sarif-om,
|
|
setuptools,
|
|
sympy,
|
|
typing-extensions,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cfn-lint";
|
|
version = "1.43.3";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aws-cloudformation";
|
|
repo = "cfn-lint";
|
|
tag = "v${version}";
|
|
hash = "sha256-tolQ7O6J/pfmtw29t8SGBDEDGiTOsJdc/mI3ulUseKo=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
aws-sam-translator
|
|
jsonpatch
|
|
networkx
|
|
pyyaml
|
|
regex
|
|
sympy
|
|
typing-extensions
|
|
];
|
|
|
|
optional-dependencies = {
|
|
graph = [ pydot ];
|
|
junit = [ junit-xml ];
|
|
sarif = [
|
|
jschema-to-python
|
|
sarif-om
|
|
];
|
|
full = lib.concatAttrValues (lib.removeAttrs optional-dependencies [ "full" ]);
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
defusedxml
|
|
mock
|
|
pytestCheckHook
|
|
]
|
|
++ optional-dependencies.full;
|
|
|
|
preCheck = ''
|
|
export PATH=$out/bin:$PATH
|
|
'';
|
|
|
|
disabledTests = [
|
|
# Requires git directory
|
|
"test_update_docs"
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# unexpected exit code afer nodejs_24 24.16.0 update
|
|
"test/integration/test_quickstart_templates.py::TestQuickStartTemplates::test_templates"
|
|
"test/integration/test_quickstart_templates_non_strict.py::TestQuickStartTemplates::test_module_integration"
|
|
"test/integration/test_quickstart_templates_non_strict.py::TestQuickStartTemplates::test_templates"
|
|
"test/integration/test_good_templates.py::TestQuickStartTemplates::test_module_integration"
|
|
"test/integration/test_good_templates.py::TestQuickStartTemplates::test_templates"
|
|
];
|
|
|
|
pythonImportsCheck = [ "cfnlint" ];
|
|
|
|
meta = {
|
|
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/${src.tag}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|