[Buildroot] [git commit branch/2025.02.x] package/python-pyopenssl: add missing dependency for deprecation handling

Thomas Perale thomas.perale at mind.be
Thu Oct 9 06:50:28 UTC 2025


commit: https://git.buildroot.net/buildroot/commit/?id=b461e9602ed24176c37ac0b8af837b832f70f338
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2025.02.x

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é <alexis.lothore at bootlin.com>
Signed-off-by: Thomas Perale <thomas.perale at mind.be>
---
 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.
 


More information about the buildroot mailing list