22 buildPythonPackage rec {
26 src = fetchFromGitHub {
27 owner = "aws-cloudformation";
28 repo = "cfn-python-lint";
30 sha256 = "0cqpq7pxpslpd7am6mp6nmwhsb2p2a5lq3hjjxi8imv3wv7zql98";
34 substituteInPlace setup.py \
35 --replace 'importlib_resources~=1.4;python_version<"3.7" and python_version!="3.4"' 'importlib_resources;python_version<"3.7"'
38 propagatedBuildInputs = [
49 ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata importlib-resources ];
58 export PATH=$out/bin:$PATH
62 # These tests depend on the current date, for example because of issues like this.
63 # This makes it possible for them to succeed on hydra and then begin to fail without
65 # https://github.com/aws-cloudformation/cfn-python-lint/issues/1705
66 # See also: https://github.com/NixOS/nixpkgs/issues/108076
67 "TestQuickStartTemplates"
68 # requires git directory
72 pythonImportsCheck = [
77 "cfnlint.decode.cfn_yaml"
78 "cfnlint.decode.cfn_json"
79 "cfnlint.decorators.refactored"
89 description = "Checks cloudformation for practices and behaviour that could potentially be improved";
90 homepage = "https://github.com/aws-cloudformation/cfn-python-lint";
91 changelog = "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/CHANGELOG.md";
92 license = licenses.mit;