From b461e9602ed24176c37ac0b8af837b832f70f338 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20Lothor=C3=A9=20via=20buildroot?= Date: Thu, 25 Sep 2025 16:50:52 +0200 Subject: [PATCH] package/python-pyopenssl: add missing dependency for deprecation handling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When commit bbdcb75d7f19 ("package/python-pyopenssl: bump to version 25.0.0") has been added, it has silently introduced a new dependency on typing_extensions that has not been ported in the corresponding Config.in, resulting in failures at runtime when trying to import the module: ModuleNotFoundError: No module named 'typing_extensions' The upstream project has indeed introduced the following deprecation handling snippet with commit 1b2b0ed21986 ("Use type-level deprecations (#1389)"): if sys.version_info >= (3, 13): from warnings import deprecated elif sys.version_info < (3, 8): _T = typing.TypeVar("T") def deprecated(msg: str, **kwargs: object) -> Callable[[_T], _T]: return lambda f: f else: from typing_extensions import deprecated This then breaks systems with pyopenssl >= 25.0.0, python < 3.13, python >= 3.8, and without typing_extensions. Fix the missing dependency by adding it explicitely in pyopenssl Config.in Signed-off-by: Alexis Lothoré Signed-off-by: Thomas Perale --- package/python-pyopenssl/Config.in | 1 + 1 file changed, 1 insertion(+) diff --git a/package/python-pyopenssl/Config.in b/package/python-pyopenssl/Config.in index 56f38f5888..184ad3c5f5 100644 --- a/package/python-pyopenssl/Config.in +++ b/package/python-pyopenssl/Config.in @@ -2,6 +2,7 @@ config BR2_PACKAGE_PYTHON_PYOPENSSL bool "python-pyopenssl" depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS # python-cryptography select BR2_PACKAGE_PYTHON_CRYPTOGRAPHY # runtime + select BR2_PACKAGE_PYTHON_TYPING_EXTENSIONS help Python wrapper module around the OpenSSL library.