Something went wrong. Try again.
lol
Something went wrong. Try again.
1.6 kB · 82 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283{ lib, aws-sam-translator, buildPythonPackage, defusedxml, fetchFromGitHub, jschema-to-python, jsonpatch, junit-xml, mock, networkx, pydot, pytestCheckHook, pyyaml, regex, sarif-om, setuptools, sympy, typing-extensions,}:
buildPythonPackage rec { pname = "cfn-lint"; version = "1.43.3"; pyproject = true;
src = fetchFromGitHub { owner = "aws-cloudformation"; repo = "cfn-lint"; tag = "v${version}"; hash = "sha256-tolQ7O6J/pfmtw29t8SGBDEDGiTOsJdc/mI3ulUseKo="; };
build-system = [ setuptools ];
dependencies = [ aws-sam-translator jsonpatch networkx pyyaml regex sympy typing-extensions ];
optional-dependencies = { graph = [ pydot ]; junit = [ junit-xml ]; sarif = [ jschema-to-python sarif-om ]; full = lib.concatAttrValues (lib.removeAttrs optional-dependencies [ "full" ]); };
nativeCheckInputs = [ defusedxml mock pytestCheckHook ] ++ optional-dependencies.full;
preCheck = '' export PATH=$out/bin:$PATH '';
disabledTests = [ # Requires git directory "test_update_docs" ];
pythonImportsCheck = [ "cfnlint" ];
meta = { description = "Checks cloudformation for practices and behaviour that could potentially be improved"; mainProgram = "cfn-lint"; homepage = "https://github.com/aws-cloudformation/cfn-lint"; changelog = "https://github.com/aws-cloudformation/cfn-lint/blob/${src.tag}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = [ ]; };}