[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
379/420: gnu: python-typeguard: Update to 4.4.1.
From: |
guix-commits |
Subject: |
379/420: gnu: python-typeguard: Update to 4.4.1. |
Date: |
Tue, 26 Nov 2024 16:29:38 -0500 (EST) |
sharlatan pushed a commit to branch python-team
in repository guix.
commit 1906b390accbccdd73126031debda4623a1e40ad
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Fri Nov 22 18:27:32 2024 +0000
gnu: python-typeguard: Update to 4.4.1.
* gnu/packages/python-xyz.scm (python-typeguard): Update to 4.4.1.
[build-system]: Swap to pyproject-build-system.
[arguments]<phases>: Use default 'check phase.
[propagated-inputs]: Add python-typing-extensions.
[native-inputs]: Add python-setuptools and python-wheel.
* gnu/packages/patches/python-typeguard-python3.10.patch: Delete file.
gnu/local.mk: Deregister patch.
Change-Id: Ibabc0645b4a6192614d714036fcba1f337924305
---
gnu/local.mk | 1 -
.../patches/python-typeguard-python3.10.patch | 47 ----------------------
gnu/packages/python-xyz.scm | 31 ++++++--------
3 files changed, 12 insertions(+), 67 deletions(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index 1ddee82ec9..903cc9fca6 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1933,7 +1933,6 @@ dist_patch_DATA =
\
%D%/packages/patches/python-sgmllib3k-assertions.patch \
%D%/packages/patches/python-sphobjinv-defer-ssl-import.patch \
%D%/packages/patches/python-sphinx-prompt-docutils-0.19.patch \
- %D%/packages/patches/python-typeguard-python3.10.patch \
%D%/packages/patches/python-wxwidgets-type-errors.patch \
%D%/packages/patches/qtdeclarative-5-disable-qmlcache.patch \
%D%/packages/patches/qtdeclarative-disable-qmlcache.patch \
diff --git a/gnu/packages/patches/python-typeguard-python3.10.patch
b/gnu/packages/patches/python-typeguard-python3.10.patch
deleted file mode 100644
index 29321d8918..0000000000
--- a/gnu/packages/patches/python-typeguard-python3.10.patch
+++ /dev/null
@@ -1,47 +0,0 @@
-Taken from Gentoo, which adapted
-https://github.com/agronholm/typeguard/commit/e0db07a777d5a481eaba6162354adf32286ce21b
-
-diff --git a/src/typeguard/__init__.py b/src/typeguard/__init__.py
-index 5684d63..27fa30b 100644
---- a/src/typeguard/__init__.py
-+++ b/src/typeguard/__init__.py
-@@ -61,22 +61,25 @@ except ImportError:
- from typing import _ForwardRef as ForwardRef
- evaluate_forwardref = ForwardRef._eval_type
-
--if sys.version_info >= (3, 10):
-- from typing import is_typeddict
--else:
-- _typed_dict_meta_types = ()
-- if sys.version_info >= (3, 8):
-- from typing import _TypedDictMeta
-- _typed_dict_meta_types += (_TypedDictMeta,)
-+try:
-+ from typing_extensions import is_typeddict
-+except ImportError:
-+ if sys.version_info >= (3, 10):
-+ from typing import is_typeddict
-+ else:
-+ _typed_dict_meta_types = ()
-+ if sys.version_info >= (3, 8):
-+ from typing import _TypedDictMeta
-+ _typed_dict_meta_types += (_TypedDictMeta,)
-
-- try:
-- from typing_extensions import _TypedDictMeta
-- _typed_dict_meta_types += (_TypedDictMeta,)
-- except ImportError:
-- pass
-+ try:
-+ from typing_extensions import _TypedDictMeta
-+ _typed_dict_meta_types += (_TypedDictMeta,)
-+ except ImportError:
-+ pass
-
-- def is_typeddict(tp) -> bool:
-- return isinstance(tp, _typed_dict_meta_types)
-+ def is_typeddict(tp) -> bool:
-+ return isinstance(tp, _typed_dict_meta_types)
-
-
- if TYPE_CHECKING:
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 51b0da44a4..6836869bbc 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -27417,30 +27417,23 @@ based on the CPython 2.7 and 3.7 parsers.")
(define-public python-typeguard
(package
(name "python-typeguard")
- (version "2.13.3")
+ (version "4.4.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "typeguard" version))
(sha256
- (base32 "1i5qzcyw2715h1g1hvj7fxykck2bkxyshpngjr3nfcx1lf6smv80"))
- (patches (search-patches "python-typeguard-python3.10.patch"))))
- (build-system python-build-system)
- (arguments
- (list
- #:phases
- #~(modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "pytest" "-vv" "-k"
- ;; XXX: These fail when installed as a library:
- ;; https://github.com/agronholm/typeguard/issues/176
- "not usefixtures and not test_cached_module")))))))
- (native-inputs (list python-mypy
- python-pytest
- python-setuptools-scm
- python-typing-extensions))
+ (base32 "06y22d1f5dhpyl71wbhsaibig5hvc2v44pw795yb8lxl02fsh8hd"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-mypy
+ python-pytest
+ python-setuptools
+ python-setuptools-scm
+ python-typing-extensions
+ python-wheel))
+ (propagated-inputs
+ (list python-typing-extensions))
(home-page "https://github.com/agronholm/typeguard")
(synopsis "Run-time type checker for Python")
(description
- 348/420: gnu: python-itsdangerous: Update to 2.2.0., (continued)
- 348/420: gnu: python-itsdangerous: Update to 2.2.0., guix-commits, 2024/11/26
- 286/420: gnu: Add python-poetry-plugin-export., guix-commits, 2024/11/26
- 350/420: gnu: python-graphviz: Update to 0.20.3., guix-commits, 2024/11/26
- 361/420: gnu: python-pydantic: Update to 1.10.19., guix-commits, 2024/11/26
- 329/420: gnu: python-cython-3: Update to 3.0.11., guix-commits, 2024/11/26
- 362/420: gnu: python-pytest-asyncio: Update to 0.24.0., guix-commits, 2024/11/26
- 365/420: gnu: Remove python-pytest-catchlog., guix-commits, 2024/11/26
- 341/420: gnu: python-pytest-localserver: Update to 0.9.0.post0., guix-commits, 2024/11/26
- 369/420: gnu: Add python-pytest-lazy-fixtures., guix-commits, 2024/11/26
- 378/420: gnu: python-jupyter-core: Fix tests., guix-commits, 2024/11/26
- 379/420: gnu: python-typeguard: Update to 4.4.1.,
guix-commits <=
- 384/420: gnu: python-ipython: Update to 8.29.0., guix-commits, 2024/11/26
- 383/420: gnu: python-stack-data: Update to 0.6.3., guix-commits, 2024/11/26
- 402/420: gnu: python-aiofiles: Update to 24.1.0., guix-commits, 2024/11/26
- 394/420: gnu: python-anytree: Update to 2.12.0., guix-commits, 2024/11/26
- 405/420: gnu: python-anyio: Update to 4.6.2., guix-commits, 2024/11/26
- 76/420: gnu: python-attrs: Update to 23.2.0., guix-commits, 2024/11/26
- 83/420: gnu: python-pytest-tornasync: Use Tornado 6., guix-commits, 2024/11/26
- 89/420: gnu: python-nbformat: Update to 5.10.4., guix-commits, 2024/11/26
- 287/420: gnu: Add python-pypa-installer., guix-commits, 2024/11/26
- 295/420: gnu: python-distributed: Adjust inputs., guix-commits, 2024/11/26