20 buildPythonPackage rec {
24 src = fetchFromGitHub {
25 owner = "aws-cloudformation";
26 repo = "cfn-python-lint";
27 rev = "refs/tags/v${version}";
28 sha256 = "sha256-282h1fBWhAfwqCuP+dU3ajn0gQtmOcPNTMKZ0a2+vHU=";
32 substituteInPlace setup.py \
33 --replace "jsonschema~=3.0" "jsonschema>=3.0"
36 propagatedBuildInputs = [
55 export PATH=$out/bin:$PATH
59 # These tests depend on the current date, for example because of issues like this.
60 # This makes it possible for them to succeed on hydra and then begin to fail without
62 # https://github.com/aws-cloudformation/cfn-python-lint/issues/1705
63 # See also: https://github.com/NixOS/nixpkgs/issues/108076
64 "TestQuickStartTemplates"
65 # requires git directory
67 # Tests depend on network access (fails in getaddrinfo)
68 "test_update_resource_specs_python_2"
69 "test_update_resource_specs_python_3"
70 "test_sarif_formatter"
73 pythonImportsCheck = [
78 "cfnlint.decode.cfn_yaml"
79 "cfnlint.decode.cfn_json"
80 "cfnlint.decorators.refactored"
90 description = "Checks cloudformation for practices and behaviour that could potentially be improved";
91 homepage = "https://github.com/aws-cloudformation/cfn-python-lint";
92 changelog = "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/CHANGELOG.md";
93 license = licenses.mit;