From patchwork Tue Jul 21 11:56:32 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: 23297 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 8D55227BBE3; Tue, 21 Jul 2020 12:58:36 +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 4C2C827BBE1 for ; Tue, 21 Jul 2020 12:58:36 +0100 (BST) Received: from localhost ([::1]:52216 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jxqup-0005F6-SS for patchwork@mira.cbaines.net; Tue, 21 Jul 2020 07:58:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jxquK-0004jR-LO for guix-patches@gnu.org; Tue, 21 Jul 2020 07:58:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55090) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jxquK-0007Ld-Bm for guix-patches@gnu.org; Tue, 21 Jul 2020 07:58:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jxquK-0001ty-BO for guix-patches@gnu.org; Tue, 21 Jul 2020 07:58:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42465] [PATCH 09/10] gnu: Add python-flake8-pyi. Resent-From: Tanguy Le Carrour Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 21 Jul 2020 11:58:04 +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.15953326527215 (code B ref 42465); Tue, 21 Jul 2020 11:58:04 +0000 Received: (at 42465) by debbugs.gnu.org; 21 Jul 2020 11:57:32 +0000 Received: from localhost ([127.0.0.1]:38394 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jxqtn-0001sJ-NL for submit@debbugs.gnu.org; Tue, 21 Jul 2020 07:57:31 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:44523) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jxqtl-0001rm-Up for 42465@debbugs.gnu.org; Tue, 21 Jul 2020 07:57:30 -0400 X-Originating-IP: 176.159.32.89 Received: from rafflesia.easter-eggs.fr (176-159-32-89.abo.bbox.fr [176.159.32.89]) (Authenticated sender: tanguy@bioneland.org) by relay8-d.mail.gandi.net (Postfix) with ESMTPA id 2D33B1BF208; Tue, 21 Jul 2020 11:57:24 +0000 (UTC) From: Tanguy Le Carrour Date: Tue, 21 Jul 2020 13:56:32 +0200 Message-Id: <20200721115633.6088-9-tanguy@bioneland.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200721115633.6088-1-tanguy@bioneland.org> References: <20200721115633.6088-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-pyi): New variable. --- gnu/packages/python-xyz.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index dd1e78d2e0..1d4199eb14 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -7957,6 +7957,35 @@ plugins that intend to support Flake8 2.x and 3.x simultaneously.") (define-public python2-flake8-polyfill (package-with-python2 python-flake8-polyfill)) +(define-public python-flake8-pyi + (package + (name "python-flake8-pyi") + (version "20.5.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "flake8-pyi" version)) + (sha256 + (base32 + "1zpq4s9kp8w95pccmhhyyx1ff2zhnidcf1zb3xs46lzcx9plvnzk")))) + (build-system python-build-system) + (propagated-inputs + `(("python-attrs" ,python-attrs) + ("python-flake8" ,python-flake8) + ("python-pyflakes" ,python-pyflakes))) + (home-page "https://github.com/ambv/flake8-pyi") + (synopsis + "A plugin for Flake8 that provides specializations for type hinting stub files.") + (description + "A plugin for Flake8 that provides specializations for type hinting stub files, +especially interesting for linting typeshed. 1) Adds the .pyi extension to +the default value of the --filename command-line argument to Flake8. This means +stubs are linted by default with this plugin enabled, without needing to explicitly list +every file. 2) Modifies PyFlakes runs for .pyi files to defer checking type annotation +expressions after the entire file has been read. This enables support for first-class +forward references that stub files use.") + (license license:expat))) + (define-public python-mistune (package (name "python-mistune")