From patchwork Thu Jul 16 14:40:12 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: 23250 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 D732F27BBE3; Thu, 16 Jul 2020 15:41:33 +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 8C17F27BBE1 for ; Thu, 16 Jul 2020 15:41:33 +0100 (BST) Received: from localhost ([::1]:45110 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jw54n-0003Gg-5O for patchwork@mira.cbaines.net; Thu, 16 Jul 2020 10:41:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47346) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jw54I-00030O-KL for guix-patches@gnu.org; Thu, 16 Jul 2020 10:41:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44092) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jw54I-00085Y-9j for guix-patches@gnu.org; Thu, 16 Jul 2020 10:41:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jw54I-0007Dr-7e for guix-patches@gnu.org; Thu, 16 Jul 2020 10:41:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42395] [PATCH v2 2/2] gnu: Add python-mypy. Resent-From: Tanguy Le Carrour Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 16 Jul 2020 14:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42395 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 42395@debbugs.gnu.org Cc: Tanguy Le Carrour Received: via spool by 42395-submit@debbugs.gnu.org id=B42395.159491043327713 (code B ref 42395); Thu, 16 Jul 2020 14:41:02 +0000 Received: (at 42395) by debbugs.gnu.org; 16 Jul 2020 14:40:33 +0000 Received: from localhost ([127.0.0.1]:55637 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jw53p-0007Cv-HW for submit@debbugs.gnu.org; Thu, 16 Jul 2020 10:40:33 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:40471) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jw53n-0007CV-Gg for 42395@debbugs.gnu.org; Thu, 16 Jul 2020 10:40:31 -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 relay4-d.mail.gandi.net (Postfix) with ESMTPA id BF5E6E0011; Thu, 16 Jul 2020 14:40:25 +0000 (UTC) From: Tanguy Le Carrour Date: Thu, 16 Jul 2020 16:40:12 +0200 Message-Id: <20200716144012.28902-2-tanguy@bioneland.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200716144012.28902-1-tanguy@bioneland.org> References: <20200716144012.28902-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-check.scm (python-mypy): New variable. --- gnu/packages/python-check.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 819ce21e09..ee3e9fe76a 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -471,3 +471,29 @@ Python software under test, when they make an HTTP query.") (description "The @code{python-mypy-extensions} module defines experimental extensions to the standard 'typing' module that are supported by the mypy typechecker.") (license license:expat))) + +(define-public python-mypy + (package + (name "python-mypy") + (version "0.782") + (source + (origin + (method url-fetch) + (uri (pypi-uri "mypy" version)) + (sha256 + (base32 + "030kn709515452n6gy2i1d9fg6fyrkmdz228lfpmbslybsld9xzg")))) + (build-system python-build-system) + (arguments `(#:tests? #f)); no tests + (propagated-inputs + `(("python-mypy-extensions" ,python-mypy-extensions) + ("python-typing-extensions" ,python-typing-extensions) + ("python-typed-ast" ,python-typed-ast))) + (home-page "http://www.mypy-lang.org/") + (synopsis "Optional static type checker for Python") + (description "Mypy is an optional static type checker for Python that aims +to combine the benefits of dynamic (or 'duck') typing and static typing. Mypy combines +the expressive power and convenience of Python with a powerful type system and +compile-time type checking. Mypy type checks standard Python programs; run them using +any Python VM with basically no runtime overhead.") + (license license:expat)))