From patchwork Fri Aug 30 14:25:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marius Bakke X-Patchwork-Id: 15172 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 5E6DF17368; Fri, 30 Aug 2019 15:31:25 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 1EB8817365 for ; Fri, 30 Aug 2019 15:31:25 +0100 (BST) Received: from localhost ([::1]:60602 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3hvw-0005Cc-II for patchwork@mira.cbaines.net; Fri, 30 Aug 2019 10:31:24 -0400 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 X-Loop: help-debbugs@gnu.org Subject: [bug#37234] [PATCH 18/21] gnu: Add python-cfn-lint. Resent-From: Marius Bakke Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 30 Aug 2019 14:27:12 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37234 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 37234@debbugs.gnu.org Received: via spool by 37234-submit@debbugs.gnu.org id=B37234.156717520814694 (code B ref 37234); Fri, 30 Aug 2019 14:27:12 +0000 Received: (at 37234) by debbugs.gnu.org; 30 Aug 2019 14:26:48 +0000 Received: from localhost ([127.0.0.1]:54657 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i3hrU-0003ou-A6 for submit@debbugs.gnu.org; Fri, 30 Aug 2019 10:26:48 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:42979) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i3hqx-0003mZ-10 for 37234@debbugs.gnu.org; Fri, 30 Aug 2019 10:26:16 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 8C09B4F6 for <37234@debbugs.gnu.org>; Fri, 30 Aug 2019 10:26:09 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Fri, 30 Aug 2019 10:26:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm3; bh=g1ZR+WknoN8bv nWXGSIYwnlBrZML8TQuYt6szLj8eU0=; b=AudJcKnSUelw3Ecei0BG6NilIPw3I UjxXmWtuj3a3psv4CjyH/vCUO8nh+xqyfgm0phYXzCP9ozRyTK1nC4Vu17qM2dEq 0su/qM9GTFMEN/QXHOLKZG9WrL+RsbRcJOKQaxPOw7QVuJNG9pmL+8HNaXSttFIK WvTu7dzgmXo2izfVyTbGU874xlCuNH8jqXbH8r9LUnOTQs4HHV2GxCwdCeVVE6lO QLVDGAxGqGATr7GemcL+f64Kubk6PpZ9NWlDTmI16LX3HDjp96Pvk5C17nMFIl2A TwXiWrjFHY98ufJLrokptSdi5OSGZIQdHrAfMdc3Za7OJ0CuJI8Y8YFvg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=g1ZR+WknoN8bvnWXGSIYwnlBrZML8TQuYt6szLj8eU0=; b=bw6oHg2A /67rZ8x7eFhoECHTZ0ynYpPiJiW1NyxxB9ypzqnY2/hhW5xRd2VkdvMISTQgEORs 3IFK92DeneMwlCjdnOv4w9dILXOZFvOztMjuNbiJL0ZUI8aCKeQ1L3nd73HLjIIH nmvX/sJl+4QEhWrgYXBf3Gx5tOCVfZeC5bm781xXqW3Mliki2PkHJgmYgMGM/dgk q9OhJSUNHBaY2S3Pu7LRnjwZomShIxcNPEeMARglvgmqi1HNxVfJuuF5Qi9WNAxL WwD48E2WHy6r9glnH4ym9yYKhfaSkq+++dlwJiMm89XTPw3rl2iw9o9HYKoXajU0 Pa1SS6njKiQUqw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudeigedgjeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomhepofgrrhhiuhhsuceurghkkhgvuceomhgsrghkkhgvsehfrghs thhmrghilhdrtghomheqnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepie dvrdduiedrudelvddrudehtdenucfrrghrrghmpehmrghilhhfrhhomhepmhgsrghkkhgv sehfrghsthhmrghilhdrtghomhenucevlhhushhtvghrufhiiigvpeduud X-ME-Proxy: Received: from localhost (ti0006q161-0149.bb.online.no [62.16.192.150]) by mail.messagingengine.com (Postfix) with ESMTPA id AC7818005A for <37234@debbugs.gnu.org>; Fri, 30 Aug 2019 10:26:08 -0400 (EDT) From: Marius Bakke Date: Fri, 30 Aug 2019 16:25:36 +0200 Message-Id: <20190830142539.28376-18-mbakke@fastmail.com> X-Mailer: git-send-email 2.22.1 In-Reply-To: <20190830142539.28376-1-mbakke@fastmail.com> References: <20190830142539.28376-1-mbakke@fastmail.com> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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")