control: reassign -1 src:python-libtmux
control: notfound -1 1.0.6-2
control: found -1 0.42.0-1
control: retitle -1 [python3-libtmux] Tries to import typing_extensions without 
a declared dependency
control: affects -1 src:hexer
control: tag -1 + upstream patch

On Fri, Feb 07, 2025 at 12:11:35PM +0000, Santiago Vila wrote:
> Package: src:hexer
> Version: 1.0.6-2
> Severity: serious
> Tags: ftbfs trixie sid
> 
> Dear maintainer:
> 
> During a rebuild of all packages in unstable, your package failed to build:
[snip]
>    debian/rules override_dh_auto_test
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> env HEXER_PROG='/<<PKGBUILDDIR>>/hexer' python3 -m pytest -vv -- 
> debian/tests/python/tests/unit
> Traceback (most recent call last):
[snip]
>   File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 421, in 
> load_setuptools_entrypoints
>     plugin = ep.load()
[snip]
>   File "/usr/lib/python3/dist-packages/libtmux/pytest_plugin.py", line 15, in 
> <module>
>     from libtmux.test import TEST_SESSION_PREFIX, get_test_session_name, namer
>   File "/usr/lib/python3/dist-packages/libtmux/test.py", line 13, in <module>
>     from typing_extensions import Self
> ModuleNotFoundError: No module named 'typing_extensions'
> make[1]: *** [debian/rules:21: override_dh_auto_test] Error 1
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> make: *** [debian/rules:31: binary] Error 2
> dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 
> 2
> --------------------------------------------------------------------------------

This seems to be a bug in python3-libtmux 0.42.0-1; the pytest plugin seems to
only have been tested (upstream) in environments where something pulled in
the typing-extensions module as a dependency. I suggested a fix upstream at
https://github.com/tmux-python/libtmux/pull/562 and also a Salsa MR for
python-libtmux at 
https://salsa.debian.org/debian/python-libtmux/-/merge_requests/1

Santiago, thanks a lot for your work in filing this kind of bugs!

G'luck,
Peter

-- 
Peter Pentchev  r...@ringlet.net r...@debian.org pe...@morpheusly.com
PGP key:        https://www.ringlet.net/roam/roam.key.asc
Key fingerprint 2EE7 A7A5 17FC 124C F115  C354 651E EFB0 2527 DF13

Attachment: signature.asc
Description: PGP signature

Reply via email to