[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20/23: gnu: Add python-cfn-lint.
From: |
guix-commits |
Subject: |
20/23: gnu: Add python-cfn-lint. |
Date: |
Fri, 20 Nov 2020 19:23:15 -0500 (EST) |
mbakke pushed a commit to branch master
in repository guix.
commit 78c5f162b73b665f7812a63db4e7482cda3c2bfa
Author: Marius Bakke <mbakke@fastmail.com>
AuthorDate: Mon Aug 19 13:17:34 2019 +0200
gnu: Add python-cfn-lint.
* gnu/packages/python-web.scm (python-cfn-lint): New public variable.
---
gnu/packages/python-web.scm | 50 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 1afd614..0e398a5 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -68,6 +68,7 @@
#:use-module (gnu packages curl)
#:use-module (gnu packages databases)
#:use-module (gnu packages django)
+ #:use-module (gnu packages graphviz)
#:use-module (gnu packages groff)
#:use-module (gnu packages libevent)
#:use-module (gnu packages libffi)
@@ -380,6 +381,55 @@ Model} (SAM) templates into AWS CloudFormation templates.")
emit information from within their applications to the AWS X-Ray service.")
(license license:asl2.0)))
+(define-public python-cfn-lint
+ (package
+ (name "python-cfn-lint")
+ (version "0.41.0")
+ (home-page "https://github.com/aws-cloudformation/cfn-python-lint")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url home-page)
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0nqs0fmj3hd7pnd9hkb4z57jvi2iv82hh6n3xxba6i6p8zgx75q4"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ ;; Remove test for the documentation update scripts
+ ;; to avoid a dependency on 'git'.
+ (delete-file
+
"test/unit/module/maintenance/test_update_documentation.py")
+ (setenv "PYTHONPATH"
+ (string-append "./build/lib:"
+ (getenv "PYTHONPATH")))
+ (setenv "PATH" (string-append out "/bin:"
+ (getenv "PATH")))
+ (invoke "python" "-m" "unittest" "discover"
+ "-s" "test")))))))
+ (native-inputs
+ `(("python-pydot" ,python-pydot)
+ ("python-mock" ,python-mock)))
+ (propagated-inputs
+ `(("python-aws-sam-translator" ,python-aws-sam-translator)
+ ("python-jsonpatch" ,python-jsonpatch)
+ ("python-jsonschema" ,python-jsonschema)
+ ("python-junit-xml" ,python-junit-xml)
+ ("python-networkx" ,python-networkx)
+ ("python-pyyaml" ,python-pyyaml)
+ ("python-six" ,python-six)))
+ (synopsis "Validate CloudFormation templates")
+ (description
+ "This package lets you validate CloudFormation YAML/JSON templates against
+the CloudFormation spec and additional checks. Includes checking valid values
+for resource properties and best practices.")
+ (license license:expat)))
+
(define-public python-falcon
(package
(name "python-falcon")
- 01/23: gnu: cheese: Remove obsolete input., (continued)
- 01/23: gnu: cheese: Remove obsolete input., guix-commits, 2020/11/20
- 04/23: gnu: python-botocore: Update to 1.19.22., guix-commits, 2020/11/20
- 05/23: gnu: awscli: Update to 1.18.183., guix-commits, 2020/11/20
- 06/23: gnu: python-s3transfer: Update to 0.3.3., guix-commits, 2020/11/20
- 07/23: gnu: Add python-databricks-cli., guix-commits, 2020/11/20
- 09/23: gnu: Add python-querystring-parser., guix-commits, 2020/11/20
- 11/23: gnu: python-docker: Propagate runtime dependency., guix-commits, 2020/11/20
- 14/23: gnu: Add python-jsonpickle., guix-commits, 2020/11/20
- 16/23: gnu: Add python-jose., guix-commits, 2020/11/20
- 19/23: gnu: python-jsonpatch: Propagate required input., guix-commits, 2020/11/20
- 20/23: gnu: Add python-cfn-lint.,
guix-commits <=
- 13/23: gnu: Add python-sshpubkeys., guix-commits, 2020/11/20
- 12/23: gnu: Add python-boto3., guix-commits, 2020/11/20
- 17/23: gnu: Add python-boto., guix-commits, 2020/11/20
- 21/23: gnu: Add python-junit-xml., guix-commits, 2020/11/20
- 15/23: gnu: Add python-aws-xray-sdk., guix-commits, 2020/11/20
- 18/23: gnu: Add python-aws-sam-translator., guix-commits, 2020/11/20
- 23/23: gnu: Add python-moto., guix-commits, 2020/11/20
- 22/23: gnu: Add python-flask-cors., guix-commits, 2020/11/20