depot/third_party/nixpkgs/pkgs/development/python-modules/cfn-lint/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

84 lines
1.6 KiB
Nix

{ 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.83.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "aws-cloudformation";
repo = "cfn-lint";
rev = "refs/tags/v${version}";
hash = "sha256-0NHD8P+lKsrsEX/ypUS5dIwHOLudQcqkH8zG5RxANxE=";
};
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";
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; [ ];
};
}