gnu: python-mypy: Update to 1.4.1.

* gnu/packages/python-check.scm (python-mypy): Update to 1.4.1.
[origin]: Switch to PyPI.
[arguments]: Don't skip the testImports test.

Signed-off-by: Christopher Baines <mail@cbaines.net>
This commit is contained in:
Vincent Prat 2023-06-26 11:44:47 +02:00 committed by Christopher Baines
parent 9c9d6c3dab
commit eeeaf13984
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -1834,24 +1834,14 @@ (define-public python-mypy-extensions
(define-public python-mypy (define-public python-mypy
(package (package
(name "python-mypy") (name "python-mypy")
(version "0.971") (version "1.4.1")
(source (source
(origin (origin
;; Because of https://github.com/python/mypy/issues/9584, the (method url-fetch)
;; mypyc/analysis directory is missing in the PyPI archive, leading to (uri (pypi-uri "mypy" version))
;; 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 (sha256
(base32 (base32
"0i8swdynms1wpiprgqn24za6mx8rlgxr2jash3cb5xi8jyf58n97")))) "06svfmqbnb45pydy8lcrr12wqhhla5dl888w0g4f3wm1ismxkg4v"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(#:phases `(#:phases
@ -1859,10 +1849,7 @@ (define-public python-mypy
(replace 'check (replace 'check
(lambda* (#:key tests? #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
(when tests? (when tests?
(invoke "pytest" "-vv" "mypyc" (invoke "pytest" "mypyc")))))))
;; XXX: This test gets an unexpected DeprecationWarning
;; from recent versions of setuptools. Ignore for now.
"-k" "not testImports")))))))
(native-inputs (native-inputs
(list python-attrs (list python-attrs
python-lxml python-lxml