diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/cfn-lint/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/cfn-lint/default.nix | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/cfn-lint/default.nix b/nixpkgs/pkgs/development/python-modules/cfn-lint/default.nix index 79482ae5c16..f18e307c61c 100644 --- a/nixpkgs/pkgs/development/python-modules/cfn-lint/default.nix +++ b/nixpkgs/pkgs/development/python-modules/cfn-lint/default.nix @@ -12,17 +12,23 @@ , jsonschema , pathlib2 , setuptools +, junit-xml +, networkx }: buildPythonPackage rec { pname = "cfn-lint"; - version = "0.26.3"; + version = "0.35.0"; src = fetchPypi { inherit pname version; - sha256 = "384c37d239579c7b9f61a3aaadb92ebe81f37cd6ee6a161485401179af6c7a44"; + 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 = [ pyyaml six @@ -32,10 +38,27 @@ buildPythonPackage rec { jsonschema pathlib2 setuptools + junit-xml + networkx ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata importlib-resources ]; # No tests included in archive 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; { description = "Checks cloudformation for practices and behaviour that could potentially be improved"; |