toolz: FTBFS building against python 3.15

Maximiliano Curia <[email protected]>
Newsgroups gmane.linux.debian.devel.python
Message-ID <[email protected]>
Package: src:toolz
Version: 1.1.0-1
User: [email protected]
Usertags: python3.15
Tags: patch

Hi!

While rebuilding the python related packages against the python version
3.15rc1 we found that toolz fails to build from source[1].

There is an open pr about this issue that adds compatibility for python
3.15 [2], and it seems to fix the build. I'm attaching the patch that we
used in the sandbox to make toolz to build.

Please consider including this patch or a similar one in you next
upload.

As a side note, I used the version in the salsa, and I also had to add a
debian/source/options file with:
extend-diff-ignore = "pyproject.toml"

Happy hacking,

[1]: https://debusine.debian.net/debian/r-python-python3.15/work-request/1081934/
[2]: https://github.com/pytoolz/toolz/pull/624
-- 
"Can you imagine what I would do if I could do all I can?" -- Sun Tzu
Saludos /\/\ /\ >< `/
add_frozendict_signature_py315.patch (text/x-diff, 631 B)
commit 8f23a9a2d5f07ff0c790ee1e2bdef023ff252cc1
Author: Karolina Surma <[email protected]>
Date:   Thu May 21 23:30:41 2026 +0200

    Add frozendict signature (Python 3.15 compatibility)

diff --git a/toolz/_signatures.py b/toolz/_signatures.py
index 27229ef..a14ca33 100644
--- a/toolz/_signatures.py
+++ b/toolz/_signatures.py
@@ -109,6 +109,9 @@ module_info[builtins] = dict(
     format=[
         lambda value: None,
         lambda value, format_spec: None],
+    frozendict=[
+        lambda **kwargs: None,
+        lambda mapping, **kwargs: None],
     frozenset=[
         lambda: None,
         lambda iterable: None],
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.