gnu: python-mypy: Update to 1.16.1.

* gnu/packages/python-check.scm (python-mypy): Update to 1.16.1.
  [arguments] <test-flags>: Respect parallel option.
  [native-inputs]: Remove python-attrs, python-pytest-forked, and
  python-virtualenv; add  python-types-setuptools.
  [propagated-inputs]: Add python-pathspec.

Change-Id: Idaecb763785b541f2591cd4530cb71a91e973f44
This commit is contained in:
Sharlatan Hellseher 2025-07-12 21:01:02 +01:00
parent dc4099de62
commit 579d43aafc
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -1253,20 +1253,22 @@ side effects when unit testing.")
(define-public python-mypy (define-public python-mypy
(package (package
(name "python-mypy") (name "python-mypy")
(version "1.13.0") (version "1.16.1")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "mypy" version)) (uri (pypi-uri "mypy" version))
(sha256 (sha256
(base32 (base32
"0pl3plw815824z5gsncnjg3yn2v5wz0gqp20wdrncgmzdwdsd482")))) "1avv8cj0qfhpw4s36bjhg994rml35fs4ndz78xg1r14l4050ml3b"))))
(build-system pyproject-build-system) (build-system pyproject-build-system)
(arguments (arguments
(list (list
;; It tries to download hatchling and install aditional test #:test-flags
;; dependencies. #~(list "--numprocesses" (number->string (parallel-job-count))
#:test-flags #~(list "--ignore=mypy/test/testpep561.py") ;; It tries to download hatchling and install aditional test
;; dependencies.
"--ignore=mypy/test/testpep561.py")
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-before 'check 'set-home (add-before 'check 'set-home
@ -1277,17 +1279,16 @@ side effects when unit testing.")
(setenv "HOME" "/tmp")))))) (setenv "HOME" "/tmp"))))))
(native-inputs (native-inputs
(list nss-certs-for-test (list nss-certs-for-test
python-attrs
python-lxml python-lxml
python-psutil python-psutil
python-pytest python-pytest
python-pytest-forked
python-pytest-xdist python-pytest-xdist
python-setuptools python-setuptools
python-virtualenv python-types-setuptools
python-wheel)) python-wheel))
(propagated-inputs (propagated-inputs
(list python-mypy-extensions (list python-mypy-extensions
python-pathspec
python-tomli python-tomli
python-typing-extensions)) python-typing-extensions))
(home-page "https://www.mypy-lang.org/") (home-page "https://www.mypy-lang.org/")