about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/cfn-lint/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/cfn-lint/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/cfn-lint/default.nix51
1 files changed, 23 insertions, 28 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/cfn-lint/default.nix b/nixpkgs/pkgs/development/python-modules/cfn-lint/default.nix
index 9c44a4f4b6b6..ed5377d9783a 100644
--- a/nixpkgs/pkgs/development/python-modules/cfn-lint/default.nix
+++ b/nixpkgs/pkgs/development/python-modules/cfn-lint/default.nix
@@ -1,38 +1,37 @@
 { lib
+, aws-sam-translator
 , buildPythonPackage
 , fetchFromGitHub
-, pythonOlder
-, aws-sam-translator
 , jschema-to-python
 , jsonpatch
 , jsonschema
 , junit-xml
+, mock
 , networkx
+, pydot
+, pytestCheckHook
+, pythonOlder
 , pyyaml
+, regex
 , sarif-om
 , setuptools
-, six
-, mock
-, pydot
-, pytestCheckHook
+, sympy
 }:
 
 buildPythonPackage rec {
   pname = "cfn-lint";
-  version = "0.73.2";
+  version = "0.79.6";
+  format = "setuptools";
+
+  disabled = pythonOlder "3.7";
 
   src = fetchFromGitHub {
     owner = "aws-cloudformation";
     repo = "cfn-python-lint";
     rev = "refs/tags/v${version}";
-    hash = "sha256-CNB5LrXllGxy99NjCrbjkUXUpJ72U3pUnWqrqkOiCG8=";
+    hash = "sha256-5Lb8dA8HqDdEO/Ehv5y/JlP+te46mzrTw/kNHBb9l38=";
   };
 
-  postPatch = ''
-    substituteInPlace setup.py \
-      --replace "jsonschema~=3.0" "jsonschema>=3.0"
-  '';
-
   propagatedBuildInputs = [
     aws-sam-translator
     jschema-to-python
@@ -40,9 +39,11 @@ buildPythonPackage rec {
     jsonschema
     junit-xml
     networkx
+    networkx
     pyyaml
+    regex
     sarif-om
-    six
+    sympy
   ];
 
   nativeCheckInputs = [
@@ -62,34 +63,28 @@ buildPythonPackage rec {
     # https://github.com/aws-cloudformation/cfn-python-lint/issues/1705
     # See also: https://github.com/NixOS/nixpkgs/issues/108076
     "TestQuickStartTemplates"
-    # requires git directory
+    # Requires git directory
     "test_update_docs"
     # Tests depend on network access (fails in getaddrinfo)
     "test_update_resource_specs_python_2"
     "test_update_resource_specs_python_3"
     "test_sarif_formatter"
+    # Some CLI tests fails
+    "test_bad_config"
+    "test_override_parameters"
+    "test_positional_template_parameters"
+    "test_template_config"
   ];
 
   pythonImportsCheck = [
     "cfnlint"
-    "cfnlint.conditions"
-    "cfnlint.core"
-    "cfnlint.decode.node"
-    "cfnlint.decode.cfn_yaml"
-    "cfnlint.decode.cfn_json"
-    "cfnlint.decorators.refactored"
-    "cfnlint.graph"
-    "cfnlint.helpers"
-    "cfnlint.rules"
-    "cfnlint.runner"
-    "cfnlint.template"
-    "cfnlint.transform"
   ];
 
   meta = with lib; {
     description = "Checks cloudformation for practices and behaviour that could potentially be improved";
     homepage = "https://github.com/aws-cloudformation/cfn-python-lint";
-    changelog = "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/CHANGELOG.md";
+    changelog = "https://github.com/aws-cloudformation/cfn-lint/blob/v${version}/CHANGELOG.md";
     license = licenses.mit;
+    maintainers = with maintainers; [ ];
   };
 }