Merge pull request #240206 from fabaff/cfn-lint-bump

python311Packages.cfn-lint: 0.73.2 -> 0.79.6
This commit is contained in:
Fabian Affolter 2023-09-03 11:50:22 +02:00 committed by GitHub
commit 938a94b594
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 30 deletions

View file

@ -59,7 +59,8 @@ buildPythonPackage rec {
meta = with lib; {
description = "Python library to transform SAM templates into AWS CloudFormation templates";
homepage = "https://github.com/aws/serverless-application-model";
homepage = "https://github.com/awslabs/serverless-application-model";
changelog = "https://github.com/aws/serverless-application-model/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};

View file

@ -1,38 +1,37 @@
{ lib
, aws-sam-translator
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, aws-sam-translator
, jschema-to-python
, jsonpatch
, jsonschema
, junit-xml
, networkx
, pyyaml
, sarif-om
, setuptools
, six
, mock
, networkx
, pydot
, pytestCheckHook
, pythonOlder
, pyyaml
, regex
, sarif-om
, setuptools
, sympy
}:
buildPythonPackage rec {
pname = "cfn-lint";
version = "0.73.2";
version = "0.79.6";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "aws-cloudformation";
repo = "cfn-python-lint";
rev = "refs/tags/v${version}";
hash = "sha256-CNB5LrXllGxy99NjCrbjkUXUpJ72U3pUnWqrqkOiCG8=";
hash = "sha256-5Lb8dA8HqDdEO/Ehv5y/JlP+te46mzrTw/kNHBb9l38=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "jsonschema~=3.0" "jsonschema>=3.0"
'';
propagatedBuildInputs = [
aws-sam-translator
jschema-to-python
@ -40,9 +39,11 @@ buildPythonPackage rec {
jsonschema
junit-xml
networkx
networkx
pyyaml
regex
sarif-om
six
sympy
];
nativeCheckInputs = [
@ -62,34 +63,28 @@ buildPythonPackage rec {
# https://github.com/aws-cloudformation/cfn-python-lint/issues/1705
# See also: https://github.com/NixOS/nixpkgs/issues/108076
"TestQuickStartTemplates"
# requires git directory
# 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"
"cfnlint.conditions"
"cfnlint.core"
"cfnlint.decode.node"
"cfnlint.decode.cfn_yaml"
"cfnlint.decode.cfn_json"
"cfnlint.decorators.refactored"
"cfnlint.graph"
"cfnlint.helpers"
"cfnlint.rules"
"cfnlint.runner"
"cfnlint.template"
"cfnlint.transform"
];
meta = with lib; {
description = "Checks cloudformation for practices and behaviour that could potentially be improved";
homepage = "https://github.com/aws-cloudformation/cfn-python-lint";
changelog = "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/CHANGELOG.md";
changelog = "https://github.com/aws-cloudformation/cfn-lint/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}