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