[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#42465] [PATCH v3 9/9] gnu: Add python-mypy.
From: |
Tanguy Le Carrour |
Subject: |
[bug#42465] [PATCH v3 9/9] gnu: Add python-mypy. |
Date: |
Mon, 27 Jul 2020 10:00:51 +0200 |
* gnu/packages/python-check.scm (python-mypy): New variable.
---
gnu/packages/python-check.scm | 50 +++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index facdf11f07..c4c91d21e9 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -31,6 +31,7 @@
#:use-module (gnu packages python-web)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages web)
+ #:use-module (gnu packages xml)
#:use-module (guix utils)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
@@ -792,3 +793,52 @@ the implementation of that name.")
experimental extensions to the standard @code{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
+ `(#: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-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 "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.")
+ ;; Most of the code is under MIT license; Some files are under Python
Software
+ ;; Foundation License version 2: stdlib-samples/*,
mypyc/lib-rt/pythonsupport.h and
+ ;; mypyc/lib-rt/getargs.c
+ (license (list license:expat license:psfl))))
--
2.27.0
- [bug#42465] [PATCH v2 05/10] gnu: Add python-libcst., (continued)
- [bug#42465] [PATCH v2 05/10] gnu: Add python-libcst., Tanguy Le Carrour, 2020/07/22
- [bug#42465] [PATCH v2 09/10] gnu: Add python-flake8-pyi., Tanguy Le Carrour, 2020/07/22
- [bug#42465] [PATCH v2 06/10] gnu: Add python-lark-parser., Tanguy Le Carrour, 2020/07/22
- [bug#42465] [PATCH v2 10/10] gnu: Add python-mypy., Tanguy Le Carrour, 2020/07/22
- [bug#42465] [PATCH v2 07/10] gnu: Add python-hypothesmith., Tanguy Le Carrour, 2020/07/22
- [bug#42465] [PATCH v3 1/9] gnu: Add python-mypy-extensions., Tanguy Le Carrour, 2020/07/27
- [bug#42465] [PATCH v3 2/9] gnu: Add python-typing-inspect., Tanguy Le Carrour, 2020/07/27
- [bug#42465] [PATCH v3 3/9] gnu: Add python-hypothesis-5.23., Tanguy Le Carrour, 2020/07/27
- [bug#42465] [PATCH v3 4/9] gnu: Add python-libcst., Tanguy Le Carrour, 2020/07/27
- [bug#42465] [PATCH v3 8/9] gnu: Add python-flake8-pyi., Tanguy Le Carrour, 2020/07/27
- [bug#42465] [PATCH v3 9/9] gnu: Add python-mypy.,
Tanguy Le Carrour <=
- [bug#42465] [PATCH v3 6/9] gnu: Add python-hypothesmith., Tanguy Le Carrour, 2020/07/27
- [bug#42465] [PATCH v3 5/9] gnu: Add python-lark-parser., Tanguy Le Carrour, 2020/07/27
- [bug#42465] [PATCH v3 7/9] gnu: Add python-flake8-bugbear., Tanguy Le Carrour, 2020/07/27