[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
333/361: gnu: python-mypy: Update to 1.13.0.
From: |
guix-commits |
Subject: |
333/361: gnu: python-mypy: Update to 1.13.0. |
Date: |
Thu, 21 Nov 2024 06:29:45 -0500 (EST) |
sharlatan pushed a commit to branch python-team
in repository guix.
commit 6eca012d3a5a6f2bcc287690f1d76b38124cbf61
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Fri Nov 15 21:57:37 2024 +0000
gnu: python-mypy: Update to 1.13.0.
* gnu/packages/python-check.scm (python-mypy): Update to 1.13.0.
[native-inputs]: Add nss-certs-for-test, python-hatchling,
python-setuptools, and python-wheel.
(python-mypy-minimal)[arguments]<phases>: Keep all phases.
[native-inputs]: Add python-setuptools, and python-wheel.
Change-Id: I45c35e361430a65a649f90e6aab7c2cff7218164
---
gnu/packages/python-check.scm | 46 ++++++++++++++++++++++++++-----------------
1 file changed, 28 insertions(+), 18 deletions(-)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index e8443eb169..3f2d56997d 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -43,6 +43,7 @@
#:use-module (gnu packages admin)
#:use-module (gnu packages base)
#:use-module (gnu packages bash)
+ #:use-module (gnu packages certs)
#:use-module (gnu packages check)
#:use-module (gnu packages django)
#:use-module (gnu packages docker)
@@ -2228,32 +2229,43 @@ supported by the MyPy typechecker.")
(define-public python-mypy
(package
(name "python-mypy")
- (version "1.4.1")
+ (version "1.13.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "mypy" version))
(sha256
(base32
- "06svfmqbnb45pydy8lcrr12wqhhla5dl888w0g4f3wm1ismxkg4v"))))
- (build-system python-build-system)
+ "0pl3plw815824z5gsncnjg3yn2v5wz0gqp20wdrncgmzdwdsd482"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "pytest" "mypyc")))))))
+ (list
+ ;; It tries to download hatchling and install aditional test
+ ;; dependencies.
+ #:test-flags #~(list "--ignore=mypy/test/testpep561.py")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'set-home
+ (lambda _
+ ;; The directory '/homeless-shelter/.cache/pip' or its parent
+ ;; directory is not owned or is not writable by the current
+ ;; user.
+ (setenv "HOME" "/tmp"))))))
(native-inputs
- (list python-attrs
+ (list nss-certs-for-test
+ python-attrs
python-lxml
python-psutil
python-pytest
python-pytest-forked
python-pytest-xdist
- python-virtualenv))
+ python-setuptools
+ python-virtualenv
+ python-wheel))
(propagated-inputs
- (list python-mypy-extensions python-tomli python-typing-extensions))
+ (list python-mypy-extensions
+ python-tomli
+ python-typing-extensions))
(home-page "https://www.mypy-lang.org/")
(synopsis "Static type checker for Python")
(description "Mypy is an optional static type checker for Python that aims
@@ -2273,12 +2285,10 @@ them using any Python VM with basically no runtime
overhead.")
(inherit python-mypy)
(name "python-mypy-minimal")
(arguments
- `(#:tests? #f
- #:phases (modify-phases %standard-phases
- ;; XXX: Fails with: "In procedure utime: No such file or
- ;; directory".
- (delete 'ensure-no-mtimes-pre-1980))))
- (native-inputs '()))))
+ `(#:tests? #f))
+ (native-inputs
+ (list python-setuptools
+ python-wheel)))))
(define-public python-nptyping
(package
- 267/361: gnu: python-unyt: Adjust inputs., (continued)
- 267/361: gnu: python-unyt: Adjust inputs., guix-commits, 2024/11/21
- 264/361: gnu: hangups: Fix build., guix-commits, 2024/11/21
- 298/361: gnu: python-exceptiongroup: Move to python-build., guix-commits, 2024/11/21
- 274/361: gnu: python-cplot: Adjust inputs., guix-commits, 2024/11/21
- 301/361: gnu: Remove python-pytest-next., guix-commits, 2024/11/21
- 324/361: gnu: python-tomli: Update to 2.1.0., guix-commits, 2024/11/21
- 316/361: gnu: python-cffi: Improve package style., guix-commits, 2024/11/21
- 306/361: gnu: python-pytest-timeout: Update to 2.3.1., guix-commits, 2024/11/21
- 307/361: gnu: python-pytest-forked: Disable tests., guix-commits, 2024/11/21
- 326/361: gnu: python-packaging-bootstrap: Update to 24.2., guix-commits, 2024/11/21
- 333/361: gnu: python-mypy: Update to 1.13.0.,
guix-commits <=
- 329/361: gnu: python-cython-3: Update to 3.0.11., guix-commits, 2024/11/21
- 332/361: gnu: python-jsonschema: Update to 4.23.0., guix-commits, 2024/11/21
- 349/361: gnu: python-flask: Update to 3.1.0., guix-commits, 2024/11/21
- 214/361: gnu: python-certauth: Move to pyproject-build-system., guix-commits, 2024/11/21
- 236/361: gnu: python-lightning-utilities: Adjust inputs., guix-commits, 2024/11/21
- 266/361: gnu: python-nose-exclude: Adjust iputs., guix-commits, 2024/11/21
- 269/361: gnu: python-pytest-openfiles: Adjust inputs., guix-commits, 2024/11/21
- 318/361: gnu: python-parso: Update to 0.8.4., guix-commits, 2024/11/21
- 328/361: gnu: python-hatchling: Update to 1.26.1., guix-commits, 2024/11/21
- 344/361: gnu: python-beautifulsoup4: Update to 4.12.3., guix-commits, 2024/11/21