Merge pull request #105658 from endgame/cfn-lint-bump
This commit is contained in:
commit
89259458bf
@ -14,25 +14,25 @@
|
|||||||
, requests
|
, requests
|
||||||
, setuptools
|
, setuptools
|
||||||
, six
|
, six
|
||||||
# Test inputs
|
|
||||||
, pytestCheckHook
|
|
||||||
, mock
|
, mock
|
||||||
, pydot
|
, pydot
|
||||||
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "cfn-lint";
|
pname = "cfn-lint";
|
||||||
version = "0.35.1";
|
version = "0.42.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "aws-cloudformation";
|
owner = "aws-cloudformation";
|
||||||
repo = "cfn-python-lint";
|
repo = "cfn-python-lint";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1ajb0412hw9fg9m4b3xbpfbp8cixmnpjxrkaks6k749xinzsv7qk";
|
sha256 = "0cqpq7pxpslpd7am6mp6nmwhsb2p2a5lq3hjjxi8imv3wv7zql98";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace setup.py --replace 'importlib_resources~=1.4;python_version<"3.7" and python_version!="3.4"' 'importlib_resources;python_version<"3.7"'
|
substituteInPlace setup.py \
|
||||||
|
--replace 'importlib_resources~=1.4;python_version<"3.7" and python_version!="3.4"' 'importlib_resources;python_version<"3.7"'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
@ -48,6 +48,21 @@ buildPythonPackage rec {
|
|||||||
six
|
six
|
||||||
] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata importlib-resources ];
|
] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata importlib-resources ];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
mock
|
||||||
|
pydot
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
export PATH=$out/bin:$PATH
|
||||||
|
'';
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# requires git directory
|
||||||
|
"test_update_docs"
|
||||||
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"cfnlint"
|
"cfnlint"
|
||||||
"cfnlint.conditions"
|
"cfnlint.conditions"
|
||||||
@ -64,9 +79,6 @@ buildPythonPackage rec {
|
|||||||
"cfnlint.transform"
|
"cfnlint.transform"
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [ pytestCheckHook mock pydot ];
|
|
||||||
preCheck = "export PATH=$out/bin:$PATH";
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Checks cloudformation for practices and behaviour that could potentially be improved";
|
description = "Checks cloudformation for practices and behaviour that could potentially be improved";
|
||||||
homepage = "https://github.com/aws-cloudformation/cfn-python-lint";
|
homepage = "https://github.com/aws-cloudformation/cfn-python-lint";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user