package/python-pyopenssl: add missing dependency for deprecation handling
When commit bbdcb75d7f ("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é <alexis.lothore@bootlin.com>
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
committed by
Thomas Perale
parent
58fff6a287
commit
b461e9602e
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user