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 wJutGXxbHF/WXwAA0tVLHw (envelope-from ) for ; Sat, 25 Jul 2020 16:19:08 +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 oA98FXxbHF8PGwAAbx9fmQ (envelope-from ) for ; Sat, 25 Jul 2020 16:19:08 +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 EDA6B94066A for ; Sat, 25 Jul 2020 16:19:07 +0000 (UTC) Received: from localhost ([::1]:37756 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jzMt8-0007zl-S3 for larch@yhetil.org; Sat, 25 Jul 2020 12:19:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58440) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jzMt4-0007zc-Bu for guix-patches@gnu.org; Sat, 25 Jul 2020 12:19:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39403) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jzMt4-0004GK-2m for guix-patches@gnu.org; Sat, 25 Jul 2020 12:19:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jzMt3-00054G-VM for guix-patches@gnu.org; Sat, 25 Jul 2020 12:19:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42465] [PATCH 10/10] gnu: Add python-mypy. Resent-From: Marius Bakke Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 25 Jul 2020 16:19:01 +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: Tanguy Le Carrour , 42465@debbugs.gnu.org Cc: Tanguy Le Carrour Received: via spool by 42465-submit@debbugs.gnu.org id=B42465.159569392719460 (code B ref 42465); Sat, 25 Jul 2020 16:19:01 +0000 Received: (at 42465) by debbugs.gnu.org; 25 Jul 2020 16:18:47 +0000 Received: from localhost ([127.0.0.1]:50949 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jzMso-00053n-S4 for submit@debbugs.gnu.org; Sat, 25 Jul 2020 12:18:47 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36624) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jzMsm-00053Z-P9 for 42465@debbugs.gnu.org; Sat, 25 Jul 2020 12:18:45 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46510) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jzMsh-0004DN-Ir; Sat, 25 Jul 2020 12:18:39 -0400 Received: from 84-52-226.102.3p.ntebredband.no ([84.52.226.102]:43474 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jzMsh-0001Jc-5F; Sat, 25 Jul 2020 12:18:39 -0400 From: Marius Bakke In-Reply-To: <20200721115633.6088-10-tanguy@bioneland.org> References: <20200721115633.6088-1-tanguy@bioneland.org> <20200721115633.6088-10-tanguy@bioneland.org> Date: Sat, 25 Jul 2020 18:18:21 +0200 Message-ID: <871rkztvoy.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) 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.11 X-TUID: LB/uh9mi8WAs --=-=-= Content-Type: text/plain Tanguy Le Carrour writes: > * gnu/packages/python-check.scm (python-mypy): New variable. Neat! I only recently learned about MyPy, good to have it in Guix. > +(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 > + `(#:phases > + (modify-phases %standard-phases > + (replace 'check > + (lambda _ > + (invoke "./runtests.py") > + #t))))) > + (native-inputs > + `(("python-attrs" ,python-attrs) > + ("python-flake8" ,python-flake8) > + ("python-flake8-bugbear" ,python-flake8-bugbear) > + ("python-flake8-pyi" ,python-flake8-pyi) > + ("python-importlib-metadata" ,python-importlib-metadata) > + ("python-lxml" ,python-lxml) > + ("python-psutil" ,python-psutil) > + ("python-py" ,python-py) > + ("python-pytest" ,python-pytest) > + ("python-pytest-cov" ,python-pytest-cov) > + ("python-pytest-forked" ,python-pytest-forked) > + ("python-pytest-xdist" ,python-pytest-xdist) > + ("python-setuptools" ,python-setuptools) > + ("python-virtualenv" ,python-virtualenv))) > + (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") Perhaps s/Optional//? I mean, if it was mandatory, wouldn't it be part of cpython? :-P Probably I'm missing something, I see upstream uses optional too. Anyway, LGTM, nice work! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl8cW04ACgkQoqBt8qM6 VPokRgf/WN3NZyGM6vPpJIsZ86HAlQHQPGOObamBaOTuCS+1ZAu3PxUaAh8AmrjU CyN7HozCfXpyqgWgV26pSE8R7e+oJ8lYX5wt11meWMKpWndf0+EAtMKTxgM4Bzew L+6bz5WtnUqg+tn5IF67UhdaTJtLjtW0VDz+RCbH+oj2fthQQXtI8mdNad6kdT50 8BRxmaEJQ/y/u+XGJf2pxxN8yPFolsh1yKKOFjNwofogdy5jUNSAW3MbK+qeFYgk 38KIt6LpMtYOLfYYEntnkWkPxBc7LPP6JAcPMm76XKFkfz7ToMBm7hbMBP1iE5nI iKtGuVosTpkigwiLFLfqDBHDpmTpZw== =32F9 -----END PGP SIGNATURE----- --=-=-=--