From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:48217) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLUuk-0007m5-9P for guix-patches@gnu.org; Tue, 30 Apr 2019 11:43:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hLUho-0001Ur-RP for guix-patches@gnu.org; Tue, 30 Apr 2019 11:30:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56844) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hLUho-0001Uh-Nz for guix-patches@gnu.org; Tue, 30 Apr 2019 11:30:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hLUho-0001w1-G0 for guix-patches@gnu.org; Tue, 30 Apr 2019 11:30:04 -0400 Subject: [bug#35193] [PATCH v2 2/3] gnu: Add python-mypy-extensions Resent-Message-ID: From: wednesday Message-ID: <20190430152914.13616-3-jessejohngildersleve@zohomail.eu> Date: Tue, 30 Apr 2019 16:29:13 +0100 In-Reply-To: <20190430152914.13616-1-jessejohngildersleve@zohomail.eu> References: <20190430152914.13616-1-jessejohngildersleve@zohomail.eu> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf8 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 35193@debbugs.gnu.org Cc: wednesday * gnu/packages/python-xyz.scm (python-mypy-extensions, python2-mypy-extensions): New public variables. --- gnu/packages/python-xyz.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 79271f0e41..01c065fc83 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -15653,3 +15653,29 @@ under which they are run. The typed_ast parsers p= roduce the standard Python AST (plus type comments), and are both fast and correct, as they are based on = the CPython 2.7 and 3.6 parsers.") (license license:asl2.0))) + +(define-public python-mypy-extensions + (package + (name "python-mypy-extensions") + (version "0.4.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "mypy_extensions" version)) + (sha256 + (base32 + "04h8brrbbx151dfa2cvvlnxgmb5wa00mhd2z7nd20s8kyibfkq1p")))) + (build-system python-build-system) + (home-page "http://www.mypy-lang.org/") + (synopsis "Experimental type system extensions for programs checked wi= th mypy") + (description "The @code{mypy_extensions} module defines experimental e= xtensions to the +standard @code{typing} module that are supported by the mypy typechecker."= ) + (license license:expat))) + +(define-public python2-mypy-extensions + (let ((mypy (package-with-python2 + (strip-python2-variant python-mypy-extensions)))) + (package (inherit mypy) + (propagated-inputs + `(("python2-typing" ,python2-typing) + ,@(package-propagated-inputs mypy)))))) --=20 2.21.0