[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/15: gnu: python-mypy: Update to 0.790.
From: |
guix-commits |
Subject: |
09/15: gnu: python-mypy: Update to 0.790. |
Date: |
Sun, 29 Nov 2020 14:08:57 -0500 (EST) |
apteryx pushed a commit to branch master
in repository guix.
commit ca5e4b46b7927fa52d347746c93c45986bbba6e2
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sat Nov 28 00:25:06 2020 -0500
gnu: python-mypy: Update to 0.790.
* gnu/packages/python-check.scm (python-mypy): Update to 0.790.
[origin]: Fetch sources from git.
[phases]{check}: Run the unit tests only, not the self test, which fails.
[native-inputs]: Remove python-py. Use python-pytest-6.
---
gnu/packages/python-check.scm | 30 +++++++++++++++++++-----------
1 file changed, 19 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index e3d2da9..7202647 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -1042,22 +1042,31 @@ supported by the MyPy typechecker.")
(define-public python-mypy
(package
(name "python-mypy")
- (version "0.782")
+ (version "0.790")
(source
- (origin
- (method url-fetch)
- (uri (pypi-uri "mypy" version))
- (sha256
- (base32
- "030kn709515452n6gy2i1d9fg6fyrkmdz228lfpmbslybsld9xzg"))))
+ (origin
+ ;; Because of https://github.com/python/mypy/issues/9584, the
+ ;; mypyc/analysis directory is missing in the PyPI archive, leading to
+ ;; test failures.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/python/mypy")
+ (commit (string-append "v" version))
+ ;; Fetch git submodules otherwise typeshed is not fetched.
+ ;; Typeshed is a collection of Python sources type annotation
+ ;; (data) files.
+ (recursive? #t)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0zq3lpdf9hphcklk40wz444h8w3dkhwa12mqba5j9lmg11klnhz7"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
- (invoke "./runtests.py")
- #t)))))
+ (invoke "pytest" "mypyc"))))))
(native-inputs
`(("python-attrs" ,python-attrs)
("python-flake8" ,python-flake8)
@@ -1066,8 +1075,7 @@ supported by the MyPy typechecker.")
("python-importlib-metadata" ,python-importlib-metadata)
("python-lxml" ,python-lxml)
("python-psutil" ,python-psutil)
- ("python-py" ,python-py)
- ("python-pytest" ,python-pytest)
+ ("python-pytest" ,python-pytest-6)
("python-pytest-cov" ,python-pytest-cov)
("python-pytest-forked" ,python-pytest-forked)
("python-pytest-xdist" ,python-pytest-xdist)
- branch master updated (0216fc2 -> c601e2b), guix-commits, 2020/11/29
- 04/15: gnu: Add python-iniconfig., guix-commits, 2020/11/29
- 02/15: gnu: python-cairocffi: Fix indentation., guix-commits, 2020/11/29
- 01/15: gnu: python-html5lib: Update to 1.1., guix-commits, 2020/11/29
- 05/15: gnu: Add python-py-next., guix-commits, 2020/11/29
- 03/15: gnu: python-cairocffi: Update to 1.2.0., guix-commits, 2020/11/29
- 06/15: gnu: python-typing-extensions: Update to 3.7.4.3., guix-commits, 2020/11/29
- 09/15: gnu: python-mypy: Update to 0.790.,
guix-commits <=
- 14/15: gnu: python-pyphen: Update to 0.10.0., guix-commits, 2020/11/29
- 07/15: gnu: Add python-pytest-6., guix-commits, 2020/11/29
- 15/15: gnu: weasyprint: Update to 52.1., guix-commits, 2020/11/29
- 13/15: gnu: python-tinycss2: Update to 1.1.0., guix-commits, 2020/11/29
- 08/15: gnu: python-pytest-xdist: Update to 2.1.0., guix-commits, 2020/11/29
- 10/15: gnu: python-cairosvg: Update to 2.5.0., guix-commits, 2020/11/29
- 11/15: gnu: python-cssselect2: Update to 0.4.1., guix-commits, 2020/11/29
- 12/15: gnu: python-flit: Update to 3.0.0., guix-commits, 2020/11/29