From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:43896) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ieZEd-0005wd-Bs for guix-patches@gnu.org; Tue, 10 Dec 2019 01:43:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ieZEc-0005aE-3E for guix-patches@gnu.org; Tue, 10 Dec 2019 01:43:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:48861) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ieZEb-0005Zw-T1 for guix-patches@gnu.org; Tue, 10 Dec 2019 01:43:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ieZEb-00022D-Qe for guix-patches@gnu.org; Tue, 10 Dec 2019 01:43:01 -0500 Subject: [bug#35975] [PATCH 43/47] gnu: Add python-mypy. Resent-Message-ID: From: Brett Gilio References: <20190529003550.3213-1-h.nasajpour@pantherx.org> Date: Tue, 10 Dec 2019 00:42:30 -0600 In-Reply-To: <20190529003550.3213-1-h.nasajpour@pantherx.org> (h. nasajpour's message of "Wed, 29 May 2019 05:05:50 +0430") Message-ID: <87r21ck7ft.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: "h.nasajpour" Cc: 35975@debbugs.gnu.org "h.nasajpour" writes: > * gnu/packages/python-xyz.scm (python-mypy): New variable > * gnu/packages/python-xyz.scm (python-mypy_extensions): New variable > --- > gnu/packages/python-xyz.scm | 41 +++++++++++++++++++++++++++++++++++++ > 1 file changed, 41 insertions(+) > > diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm > index 93783d17ee..298a59f59f 100644 > --- a/gnu/packages/python-xyz.scm > +++ b/gnu/packages/python-xyz.scm > @@ -15495,4 +15495,45 @@ by Igor Pavlov.") > as they are based on the CPython 2.7 and 3.6 parsers.") > (license license:expat))) >=20=20 > +(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 "04h8brrbbx151dfa2cvvlnxgmb5wa00mhd2z7nd20s8kyibfk= q1p")))) > + (build-system python-build-system) > + (arguments > + `(#:tests? #f)) > + (home-page "http://www.mypy-lang.org/") > + (synopsis "Experimental type system extensions for programs checked = with the mypy typechecker.") > + (description > + "The =E2=80=9Cmypy_extensions=E2=80=9D module defines experimental = extensions to the standard =E2=80=9Ctyping=E2=80=9D module that are support= ed by the mypy typechecker..") > + (license license:expat))) > + > +(define-public python-mypy > + (package > + (name "python-mypy") > + (version "0.701") > + (source (origin > + (method url-fetch) > + (uri (pypi-uri "mypy" version)) > + (sha256 (base32 "05479r3gbq17r22hyhxjg49smx5q864pgx8ayy23rsdj4w6z2= r2p")))) > + (build-system python-build-system) > + (arguments > + `(#:tests? #f)) > + (inputs `( > + ("python-typed-ast" , python-typed-ast) > + ("python-mypy_extensions" , python-mypy_extensions) > + ("python-typed-ast" , python-typed-ast) > + )) > + (home-page "http://www.mypy-lang.org/") > + (synopsis "Optional static typing for Python (mypyc-compiled version= )") > + (description > + "Add type annotations to your Python programs, and use mypy to type= check them. > + Mypy is essentially a Python linter on steroids, and it can catch many= programming errors by analyzing your program, > + without actually having to run it. Mypy has a powerful type system wit= h features such as type inference, > + gradual typing, generics and union types.") > + (license license:expat))) Hi, This package requires a few revisions before it can be merged to master. If you could separate the packages out either as separate patches in a series or by having the extensions package as a native input defined inline of the `python-mypy' package that would be terrific! Additionally, there are several issues with indentation. Generally we do not like open and close parenthesis along on lines by themselves. Additionally there are some issues with your description. Make sure to run `guix lint` to catch some of these issues. Lastly, this package has a new version upstream. If you need help let me know! Thanks! --=20 Brett M. Gilio Homepage -- https://scm.pw/ GNU Guix -- https://guix.gnu.org/