summaryrefslogtreecommitdiff
path: root/gnu/packages/patches
diff options
context:
space:
mode:
authorSharlatan Hellseher <[email protected]>2024-11-22 18:27:32 +0000
committerSharlatan Hellseher <[email protected]>2024-12-13 20:23:29 +0000
commitb0b7fc0484d84885bde88e70ac4f429139a0188b (patch)
tree11594344524018f8876cbcdaccf74dfc21636bb4 /gnu/packages/patches
parent10af55b09323a05fa9c473715bcabf1bec3ef6ea (diff)
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
Diffstat (limited to 'gnu/packages/patches')
-rw-r--r--gnu/packages/patches/python-typeguard-python3.10.patch47
1 files changed, 0 insertions, 47 deletions
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: