From patchwork Fri Apr 22 09:46:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Allan Adair X-Patchwork-Id: 38740 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 025FC27BBEA; Fri, 22 Apr 2022 10:47:51 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 88DB827BBE9 for ; Fri, 22 Apr 2022 10:47:50 +0100 (BST) Received: from localhost ([::1]:36186 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhptF-0005Z5-Iu for patchwork@mira.cbaines.net; Fri, 22 Apr 2022 05:47:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54530) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhpsU-0005Xw-JN for guix-patches@gnu.org; Fri, 22 Apr 2022 05:47:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57610) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nhpsU-00005T-0D for guix-patches@gnu.org; Fri, 22 Apr 2022 05:47:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nhpsT-0001WY-Qv for guix-patches@gnu.org; Fri, 22 Apr 2022 05:47:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55063] [PATCH] gnu: Add python-flake8-bandit and upgrade python-bandit Resent-From: Allan Adair Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 22 Apr 2022 09:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55063 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55063@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16506208125838 (code B ref -1); Fri, 22 Apr 2022 09:47:01 +0000 Received: (at submit) by debbugs.gnu.org; 22 Apr 2022 09:46:52 +0000 Received: from localhost ([127.0.0.1]:51507 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhpsF-0001W1-AN for submit@debbugs.gnu.org; Fri, 22 Apr 2022 05:46:52 -0400 Received: from lists.gnu.org ([209.51.188.17]:44788) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhpsD-0001Vs-6P for submit@debbugs.gnu.org; Fri, 22 Apr 2022 05:46:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54482) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhpsC-00056n-U8 for guix-patches@gnu.org; Fri, 22 Apr 2022 05:46:44 -0400 Received: from relay6-d.mail.gandi.net ([2001:4b98:dc4:8::226]:54281) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhpsA-0008TC-PD for guix-patches@gnu.org; Fri, 22 Apr 2022 05:46:44 -0400 Received: (Authenticated sender: allan@adair.no) by mail.gandi.net (Postfix) with ESMTPSA id 4BBBFC0005 for ; Fri, 22 Apr 2022 09:46:36 +0000 (UTC) Message-ID: From: Allan Adair Date: Fri, 22 Apr 2022 11:46:15 +0200 MIME-Version: 1.0 User-Agent: Evolution 3.42.1 Received-SPF: pass client-ip=2001:4b98:dc4:8::226; envelope-from=allan@adair.no; helo=relay6-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-xyz.scm (python-flake8-bandit): New variable. * gnu/packages/openstack.scm (python-bandit): Upgrade to 1.7.4. diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm index 4c28bb9283..67c8b2b5b7 100644 --- a/gnu/packages/openstack.scm +++ b/gnu/packages/openstack.scm @@ -7,6 +7,7 @@ ;;; Copyright © 2020, 2021 Ricardo Wurmus ;;; Copyright © 2020 Maxim Cournoyer ;;; Copyright © 2022 Tanguy Le Carrour +;;; Copyright © 2022 Allan Adair ;;; ;;; This file is part of GNU Guix. ;;; @@ -49,14 +50,14 @@ (define-module (gnu packages openstack) (define-public python-bandit (package (name "python-bandit") - (version "1.6.2") + (version "1.7.4") (source (origin (method url-fetch) (uri (pypi-uri "bandit" version)) (sha256 (base32 - "0rb034c99pyhb4a60z7f2kz40cjydhm8m9v2blaal1rmhlam7rs1")))) + "1lkvf5ffdqa9504mm5fd9vvq0q5wdyqbkm32i4rswys1fg2shqrd")))) (build-system python-build-system) (arguments ;; The tests are disabled to avoid a circular dependency with diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 9a5d311680..b45e8bc959 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -119,6 +119,7 @@ ;;; Copyright © 2022 Evgeny Pisemsky ;;; Copyright © 2022 drozdov ;;; Copyright © 2022 Peter Polidoro +;;; Copyright © 2022 Allan Adair ;;; ;;; This file is part of GNU Guix. ;;; @@ -10604,6 +10605,27 @@ (define-public python-flake8-3.8 (list python-pycodestyle-2.6 python-entrypoints python-pyflakes-2.2 python-mccabe)))) +(define-public python-flake8-bandit + (package + (name "python-flake8-bandit") + (version "3.0.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "flake8_bandit" version)) + (sha256 + (base32 "18fnw8c0w3ij0fc4bwvmd62jvhm7q10ihbmhlwi07md8wqkr9lal")))) + (build-system python-build-system) + (propagated-inputs + (list python-bandit + python-flake8 + python-flake8-polyfill + python-pycodestyle)) + (home-page "https://github.com/tylerwince/flake8-bandit") + (synopsis "Automated security testing with bandit and flake8.") + (description "Automated security testing with bandit and flake8.") + (license license:expat))) + (define-public python-flake8-bugbear (package (name "python-flake8-bugbear")