mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 10:16:44 +01:00
46 lines
913 B
Nix
46 lines
913 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, pyyaml
|
|
, six
|
|
, requests
|
|
, aws-sam-translator
|
|
, importlib-metadata
|
|
, importlib-resources
|
|
, jsonpatch
|
|
, jsonschema
|
|
, pathlib2
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cfn-lint";
|
|
version = "0.26.2";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "5449313b5f176024bd5fd6ebe69ce986a2d9b8a9d6a147b2d442c8d9fa99a6c5";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pyyaml
|
|
six
|
|
requests
|
|
aws-sam-translator
|
|
jsonpatch
|
|
jsonschema
|
|
pathlib2
|
|
setuptools
|
|
] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata importlib-resources ];
|
|
|
|
# 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;
|
|
};
|
|
}
|