2019-05-01 10:59:49 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-12-21 10:52:28 +01:00
|
|
|
, pythonOlder
|
2019-05-01 10:59:49 +02:00
|
|
|
, pyyaml
|
|
|
|
, six
|
|
|
|
, requests
|
|
|
|
, aws-sam-translator
|
2019-12-21 10:52:28 +01:00
|
|
|
, importlib-metadata
|
|
|
|
, importlib-resources
|
2019-05-01 10:59:49 +02:00
|
|
|
, jsonpatch
|
|
|
|
, jsonschema
|
|
|
|
, pathlib2
|
2019-11-08 18:16:10 +01:00
|
|
|
, setuptools
|
2019-05-01 10:59:49 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cfn-lint";
|
2020-05-09 12:01:44 +02:00
|
|
|
version = "0.26.3";
|
2019-05-01 10:59:49 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-09 12:01:44 +02:00
|
|
|
sha256 = "384c37d239579c7b9f61a3aaadb92ebe81f37cd6ee6a161485401179af6c7a44";
|
2019-05-01 10:59:49 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyyaml
|
|
|
|
six
|
|
|
|
requests
|
|
|
|
aws-sam-translator
|
|
|
|
jsonpatch
|
|
|
|
jsonschema
|
|
|
|
pathlib2
|
2019-11-08 18:16:10 +01:00
|
|
|
setuptools
|
2019-12-21 10:52:28 +01:00
|
|
|
] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata importlib-resources ];
|
2019-05-01 10:59:49 +02:00
|
|
|
|
|
|
|
# No tests included in archive
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Checks cloudformation for practices and behaviour that could potentially be improved";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/aws-cloudformation/cfn-python-lint";
|
2019-05-01 10:59:49 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|