From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:57104) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3hrv-0002WI-Aa for guix-patches@gnu.org; Fri, 30 Aug 2019 10:27:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i3hrs-0002nT-Ng for guix-patches@gnu.org; Fri, 30 Aug 2019 10:27:14 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45858) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i3hrs-0002l7-FA for guix-patches@gnu.org; Fri, 30 Aug 2019 10:27:12 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i3hrs-0003ro-8t for guix-patches@gnu.org; Fri, 30 Aug 2019 10:27:12 -0400 Subject: [bug#37234] [PATCH 18/21] gnu: Add python-cfn-lint. Resent-Message-ID: From: Marius Bakke Date: Fri, 30 Aug 2019 16:25:36 +0200 Message-Id: <20190830142539.28376-18-mbakke@fastmail.com> In-Reply-To: <20190830142539.28376-1-mbakke@fastmail.com> References: <20190830142539.28376-1-mbakke@fastmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 37234@debbugs.gnu.org * gnu/packages/python-web.scm (python-cfn-lint): New public variable. --- gnu/packages/python-web.scm | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 6e7ecacc99..b6f1f208ad 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -266,6 +266,46 @@ 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.23.3") + (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 + "1bf40lvhggf2x0n85sprkhzk9cgnxng5hhpazy4gipia1p7gv25x")))) + (build-system python-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (replace 'check + (lambda _ + (setenv "PYTHONPATH" + (string-append "./build/lib:" + (getenv "PYTHONPATH"))) + (invoke "python" "-m" "unittest" "discover" + "-s" "test")))))) + (native-inputs + `(("python-mock" ,python-mock))) + (propagated-inputs + `(("python-aws-sam-translator" ,python-aws-sam-translator) + ("python-jsonpatch" ,python-jsonpatch) + ("python-jsonpointer" ,python-jsonpointer) + ("python-jsonschema" ,python-jsonschema) + ("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") -- 2.22.1