cfn-lint: fixed importlib_resources version bounds
Also, added import checks to have a minimal test for the package
This commit is contained in:
parent
8e29e178ac
commit
037b8aefef
@ -25,6 +25,10 @@ buildPythonPackage rec {
|
|||||||
sha256 = "42023d89520e3a29891ec2eb4c326eef9d1f7516fe9abee8b6c97ce064187b45";
|
sha256 = "42023d89520e3a29891ec2eb4c326eef9d1f7516fe9abee8b6c97ce064187b45";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
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 = [
|
||||||
pyyaml
|
pyyaml
|
||||||
six
|
six
|
||||||
@ -40,6 +44,21 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
# No tests included in archive
|
# No tests included in archive
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
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; {
|
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";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user