From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iAGXEReKHl9bQQAA0tVLHw (envelope-from ) for ; Mon, 27 Jul 2020 08:02:31 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id gDdFDReKHl8gbwAAbx9fmQ (envelope-from ) for ; Mon, 27 Jul 2020 08:02:31 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E0495940631 for ; Mon, 27 Jul 2020 08:02:30 +0000 (UTC) Received: from localhost ([::1]:46166 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jzy5d-0005c5-KR for larch@yhetil.org; Mon, 27 Jul 2020 04:02:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41700) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jzy5E-0004uh-Cq for guix-patches@gnu.org; Mon, 27 Jul 2020 04:02:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42389) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jzy5E-0000lT-2C for guix-patches@gnu.org; Mon, 27 Jul 2020 04:02:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jzy5D-0004DN-Vx for guix-patches@gnu.org; Mon, 27 Jul 2020 04:02:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42465] [PATCH v3 8/9] gnu: Add python-flake8-pyi. Resent-From: Tanguy Le Carrour Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 27 Jul 2020 08:02:03 +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.159583688916101 (code B ref 42465); Mon, 27 Jul 2020 08:02:03 +0000 Received: (at 42465) by debbugs.gnu.org; 27 Jul 2020 08:01:29 +0000 Received: from localhost ([127.0.0.1]:53923 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jzy4e-0004BX-L7 for submit@debbugs.gnu.org; Mon, 27 Jul 2020 04:01:28 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:60163) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jzy4b-0004AU-5v for 42465@debbugs.gnu.org; Mon, 27 Jul 2020 04:01:25 -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 9099EC0009; Mon, 27 Jul 2020 08:01:24 +0000 (UTC) From: Tanguy Le Carrour Date: Mon, 27 Jul 2020 10:00:50 +0200 Message-Id: <20200727080051.19383-8-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 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.7 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 3.99 X-TUID: fyF8Xu+27U8Z * gnu/packages/python-xyz.scm (python-flake8-pyi): New variable. --- gnu/packages/python-xyz.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 7015c20b4e..db470d3440 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -7989,6 +7989,36 @@ 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 + "Flake8 plugin that provides specializations for type hinting stub files") + (description + "This package contains a plugin that provides specializations for +type hinting stub files, especially interesting for linting typeshed. It +adds the @file{.pyi} extension to the default value of the @code{--filename} +command-line argument to Flake8. This means stubs are linted by default with +this plugin enabled, without needing to explicitly list every file. It +modifies PyFlakes runs for @file{.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") -- 2.27.0