From patchwork Mon Jun 6 01:43:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Rodriguez X-Patchwork-Id: 39754 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 C450C27BBE9; Mon, 6 Jun 2022 02:44:15 +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.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED 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 1F65127BBEA for ; Mon, 6 Jun 2022 02:44:15 +0100 (BST) Received: from localhost ([::1]:44272 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ny1mw-00019E-90 for patchwork@mira.cbaines.net; Sun, 05 Jun 2022 21:44:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55176) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ny1mk-000193-OO for guix-patches@gnu.org; Sun, 05 Jun 2022 21:44:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40043) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ny1mk-0001KK-FN for guix-patches@gnu.org; Sun, 05 Jun 2022 21:44:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ny1mk-0001Do-Eb for guix-patches@gnu.org; Sun, 05 Jun 2022 21:44:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55814] [PATCH] Updated python-flake8 and inputs to reenable build. Resent-From: Christopher Rodriguez Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 06 Jun 2022 01:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55814 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55814@debbugs.gnu.org Cc: Christopher Rodriguez X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16544798054642 (code B ref -1); Mon, 06 Jun 2022 01:44:02 +0000 Received: (at submit) by debbugs.gnu.org; 6 Jun 2022 01:43:25 +0000 Received: from localhost ([127.0.0.1]:33940 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ny1m8-0001Cn-MT for submit@debbugs.gnu.org; Sun, 05 Jun 2022 21:43:25 -0400 Received: from lists.gnu.org ([209.51.188.17]:51762) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ny1m7-0001Cg-4r for submit@debbugs.gnu.org; Sun, 05 Jun 2022 21:43:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55138) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ny1m6-00017A-SY for guix-patches@gnu.org; Sun, 05 Jun 2022 21:43:22 -0400 Received: from mail-qk1-x72d.google.com ([2607:f8b0:4864:20::72d]:37774) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ny1m5-0001IN-3X for guix-patches@gnu.org; Sun, 05 Jun 2022 21:43:22 -0400 Received: by mail-qk1-x72d.google.com with SMTP id k6so6936405qkf.4 for ; Sun, 05 Jun 2022 18:43:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=46lqE04nbLvYdUyUeDxXm4VBstlk4MCc6XCw3njyGyE=; b=CKuV8WDCjai1qzze3PRlBBNcQ+3QDJxc6CyXkSsJM33ktH/101KOCE6hZ5BzWbIa7j +JUmECaiS/9FrnwU4aEzwZsbF7HUmLWsEzCpQx2clqpjIjTobIaJqf/CyvqFEGG8B+GB 8iLQtHsqsoNGj+KXa9W7G3OMBPi93kYzzmRUbJlMCJoZgcoMIFMoSQpNO3FnccGxGEiZ 4vG24j/C05d0U9mauy5mJgn/+DBUTle/8tKOJDjAlZS3Ezzud3NKIqaKoU++rK8Bq+Sn hNWJs8I7mDmGP3WjMuTByCX9oUZLlk+sKkRKIMjw6Zr9l7H7K4B5BsQS5gx3dj5QO5bW FwUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=46lqE04nbLvYdUyUeDxXm4VBstlk4MCc6XCw3njyGyE=; b=CsQmnUxfnFlQUgrhe7dRTPLY37+s4wVzOwxuecV708z40bwA7RfbtgzA9p1JlobrhM V/LJQb1EFkbAy0sRmCP40uX+uxruJH3ubMYH0abVfkH5r0rLgnNG7XOCGQngaszo5+gd dU/YrMEpMZQSH4xjxIeg+L5paMBrLB30t6BgwyF4TaRvN13TiOcOjTYqdt3bc32XMsqK WP0xySph2nENr9Fx4C0545Q6z2m+khD/xoMOhB3JaFjQocJxI5hhYK7WsAAcmb2WagAI ZjzwxpbKN1c3rJf1Ry200lcbNPWJt46/71HFoTLi8mSTbGOTSrp2f6ayDDH3WRbBD2jn rDQQ== X-Gm-Message-State: AOAM5332tHYzZhmYaPeRdeeNK2PtfwuMfUZjHS5BGDDdvK1ZyIMds4BB 7bfR+xI0fZIiZ6DD3lQATDDlYck1OX4= X-Google-Smtp-Source: ABdhPJw8OzofucugSroiBUjIrisz/C8v5LAxmR3qwVIA1l9IDxI4l+sFDZWvHMkeIZm1YeKSSy5BNw== X-Received: by 2002:a37:8a44:0:b0:6a6:3991:6f23 with SMTP id m65-20020a378a44000000b006a639916f23mr13949718qkd.762.1654479799289; Sun, 05 Jun 2022 18:43:19 -0700 (PDT) Received: from gmail.com (ec2-44-193-71-234.compute-1.amazonaws.com. [44.193.71.234]) by smtp.gmail.com with ESMTPSA id f2-20020a05620a408200b006a6ab8f761csm4816870qko.62.2022.06.05.18.43.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 18:43:18 -0700 (PDT) From: Christopher Rodriguez Date: Sun, 5 Jun 2022 21:43:15 -0400 Message-Id: <20220606014315.280227-1-yewscion@gmail.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::72d; envelope-from=yewscion@gmail.com; helo=mail-qk1-x72d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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 --- Hey all, I noticed today that `python-flake8` was failing to build, as one of its inputs (`python-pyflakes`) had been bumped too high for the older version's `check` phase. Tried to take the initiative and threw together this patch; It builds in my local tree, and had been linted/styled/tested/etc. I believe I have done everything by the book, but if I need to fix anything, let me know (I'm still new to contributing)! Thanks for Your time! gnu/packages/python-xyz.scm | 54 ++++++++++++++++++------------------- 1 file changed, 26 insertions(+), 28 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 0dfc6ca7e0..77f2c88235 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -6443,23 +6443,21 @@ (define-public python-socksipychain (define-public python-pycodestyle (package (name "python-pycodestyle") - (version "2.7.0") - (source - (origin - (method url-fetch) - (uri (pypi-uri "pycodestyle" version)) - (sha256 - (base32 - "1vqwmzmjdv331kmfq3q9j3as2x7r2r49lf83r9w4147pdg8c32f3")))) + (version "2.8.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "pycodestyle" version)) + (sha256 + (base32 + "0zxyrg8029lzjhima6l5nk6y0z6lm5wfp9qchz3s33j3xx3mipgd")))) (build-system python-build-system) (arguments - `(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda _ - (invoke "pytest" "-vv")))))) - (native-inputs - (list python-pytest)) + `(#:phases (modify-phases %standard-phases + (replace 'check + (lambda (#:keys input output tests? #:allow-other-keys) + (if tests? + (invoke "pytest" "-vv"))))))) + (native-inputs (list python-pytest)) (home-page "https://pycodestyle.readthedocs.io/") (synopsis "Python style guide checker") (description "@code{pycodestyle} (formerly pep8) is a tool to check @@ -10143,18 +10141,17 @@ (define-public python-pyflakes (package (name "python-pyflakes") (version "2.4.0") - (source - (origin - (method url-fetch) - (uri (pypi-uri "pyflakes" version)) - (sha256 - (base32 - "0k5jn8jpxni264wxf6cc3xcd1qckc0pww30bsd77mwzdf8l5ra05")))) + (source (origin + (method url-fetch) + (uri (pypi-uri "pyflakes" version)) + (sha256 + (base32 + "0k5jn8jpxni264wxf6cc3xcd1qckc0pww30bsd77mwzdf8l5ra05")))) (build-system python-build-system) (home-page "https://github.com/PyCQA/pyflakes") (synopsis "Passive checker of Python programs") (description - "Pyflakes statically checks Python source code for common errors.") + "Pyflakes statically checks Python source code for common errors.") (license license:expat))) (define-public python-pyflakes-2.2 @@ -10193,20 +10190,21 @@ (define-public python-mccabe (define-public python-flake8 (package (name "python-flake8") - (version "3.9.2") + (version "4.0.1") (source (origin (method url-fetch) (uri (pypi-uri "flake8" version)) (sha256 (base32 - "0sspgh2ph7bb5fmf49mrdhi7n5m421kfkxk1n0vn4akgg20q6lh7")))) + "03c7mnk34wfz7a0m5zq0273y94awz69fy5iww8alh4a4v96h6vl0")))) (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases (replace 'check - (lambda* (#:key inputs outputs #:allow-other-keys) - (add-installed-pythonpath inputs outputs) - (invoke "pytest" "-v")))))) + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (if tests? + (add-installed-pythonpath inputs outputs) + (invoke "pytest" "-v"))))))) (propagated-inputs (list python-pycodestyle python-entrypoints python-pyflakes python-mccabe)) (native-inputs (list python-mock python-pytest))