From patchwork Mon Jul 27 08:00:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tanguy LE CARROUR X-Patchwork-Id: 23399 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 A2AEB27BBE3; Mon, 27 Jul 2020 09:02:31 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 2F92527BBE1 for ; Mon, 27 Jul 2020 09:02:31 +0100 (BST) Received: from localhost ([::1]:45966 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jzy5e-0005X9-Io for patchwork@mira.cbaines.net; Mon, 27 Jul 2020 04:02:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41738) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jzy5F-0004wE-Ma for guix-patches@gnu.org; Mon, 27 Jul 2020 04:02:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42392) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jzy5F-0000lr-9n for guix-patches@gnu.org; Mon, 27 Jul 2020 04:02:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jzy5F-0004Dk-6p for guix-patches@gnu.org; Mon, 27 Jul 2020 04:02:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42465] [PATCH v3 7/9] gnu: Add python-flake8-bugbear. Resent-From: Tanguy Le Carrour Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 27 Jul 2020 08:02:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42465 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 42465@debbugs.gnu.org Cc: Tanguy Le Carrour Received: via spool by 42465-submit@debbugs.gnu.org id=B42465.159583689516132 (code B ref 42465); Mon, 27 Jul 2020 08:02:05 +0000 Received: (at 42465) by debbugs.gnu.org; 27 Jul 2020 08:01:35 +0000 Received: from localhost ([127.0.0.1]:53930 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jzy4k-0004C3-MM for submit@debbugs.gnu.org; Mon, 27 Jul 2020 04:01:34 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:55487) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jzy4e-0004Ax-If for 42465@debbugs.gnu.org; Mon, 27 Jul 2020 04:01:29 -0400 X-Originating-IP: 176.185.184.238 Received: from localhost.localdomain (static-176-185-184-238.ftth.abo.bbox.fr [176.185.184.238]) (Authenticated sender: tanguy@bioneland.org) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id CFA2CC0006; Mon, 27 Jul 2020 08:01:22 +0000 (UTC) From: Tanguy Le Carrour Date: Mon, 27 Jul 2020 10:00:49 +0200 Message-Id: <20200727080051.19383-7-tanguy@bioneland.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200727080051.19383-1-tanguy@bioneland.org> References: <20200727080051.19383-1-tanguy@bioneland.org> MIME-Version: 1.0 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-bugbear): New variable. --- gnu/packages/python-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index e67ba783fe..7015c20b4e 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -7910,6 +7910,42 @@ complexity of Python source code.") ("python-pyflakes" ,python-pyflakes-1.2) ("python-mccabe" ,python-mccabe))))) +(define-public python-flake8-bugbear + (package + (name "python-flake8-bugbear") + (version "20.1.4") + (source + (origin + (method url-fetch) + (uri (pypi-uri "flake8-bugbear" version)) + (sha256 + (base32 + "0qiihb242fygzyrfynq913ak7cdmx8mcac9c0zk3y5gv16qf80mx")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-before 'check 'disable-test + (lambda _ + ;; This test fails on slow computers. + (substitute* "tests/test_bugbear.py" + (("def test_does_not_crash_on_any_valid_code") + "def _test_does_not_crash_on_any_valid_code"))))))) + (native-inputs + `(("python-hypothesis" ,python-hypothesis) + ("python-hypothesmith" ,python-hypothesmith))) + (propagated-inputs + `(("python-attrs" ,python-attrs) + ("python-flake8" ,python-flake8))) + (home-page "https://github.com/PyCQA/flake8-bugbear") + (synopsis + "Flake8 plugin for finding likely bugs and design problems in your program") + (description + "This package contains a plugin for Flake8 finding likely bugs and +design problems in your program. It contains warnings that don't belong +in pyflakes and pycodestyle.") + (license license:expat))) + (define-public python-flake8-polyfill (package (name "python-flake8-polyfill")