#1146887 nibabel: FTBFS against python 3.15rc2

Package:
src:nibabel
Source:
src:nibabel
Submitter:
Maximiliano Curia
Date:
2026-09-09 12:21:02 UTC
Severity:
normal
Tags:
#1146887#5
Date:
2026-09-06 18:10:18 UTC
From:
To:
Hi!

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

The failure happens because test_DeterministicGzipFile and
test_DeterministicGzipFile_fileobj fail due to a discrepancy in the
default compression levels of gzip files, python 3.15 uses now
compresslevel=6

To fix this, I've made a patch to use None as the default compresslevel,
and let Python set it, instead of forcing it to 9.

I applied the fix in the sandbox [2] to be able to build the packages
that depend on nibabel, please consider applying the patch to support
the upcoming 3.15 version.

Setting the severity to important for now. Once Python 3.15 is released,
it will be added to python3-defaults and this bug will become release
critical.

Happy hacking,

[1]: https://debusine.debian.net/debian/r-python-python3.15/artifact/4478755/
[2]: https://debusine.debian.net/debian/r-python-python3.15/

#1146887#8
Date:
2026-09-09 12:03:25 UTC
From:
To:
Hello,

Bug #1146887 in pynifti reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/med-team/nibabel/-/commit/d55b7510739d51137914dabd6a39bd0e1528d950

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1146887

#1146887#15
Date:
2026-09-09 12:19:18 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
nibabel, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1146887@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Tille <tille@debian.org> (supplier of updated nibabel package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 09 Sep 2026 13:44:37 +0200
Source: nibabel
Architecture: source
Version: 5.4.2-5
Distribution: unstable
Urgency: medium
Maintainer: Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>
Changed-By: Andreas Tille <tille@debian.org>
Closes: 1146887
Changes:
 nibabel (5.4.2-5) unstable; urgency=medium
 .
   * Team upload.
 .
   [ Maximiliano Curia ]
   * Fix test failures with Python 3.15
     Closes: #1146887
 .
   [ Andreas Tille ]
   * debhelper-compat = 14
Checksums-Sha1:
 a841ac152d4863317e7e0f94ddb37f657ed52bb7 2537 nibabel_5.4.2-5.dsc
 1661386d1ccd970e1ccd19390b006c75d58a111f 13920 nibabel_5.4.2-5.debian.tar.xz
 0486bf9d288273c7610afd697351504b9cd274d3 10989 nibabel_5.4.2-5_amd64.buildinfo
Checksums-Sha256:
 079ed9952602c273fa4e14481915631276915984b2cad196e201bee6b347978f 2537 nibabel_5.4.2-5.dsc
 7ca6789a08d6e59eaa82984e76d08c6cb322e08f0893b34d3cc22cc21769e08a 13920 nibabel_5.4.2-5.debian.tar.xz
 5ce293ff0cae24460c36772b80c57d5f0f5b0464c2e69e348a90052fac663905 10989 nibabel_5.4.2-5_amd64.buildinfo
Files:
 0e6009e4fe71ea0ea92637f87ee6b818 2537 python optional nibabel_5.4.2-5.dsc
 49a2b64f3273816ebb17f502e2432f16 13920 python optional nibabel_5.4.2-5.debian.tar.xz
 613f9bbf75a6dee2c2463b688c3eaaf1 10989 python optional nibabel_5.4.2-5_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEE8fAHMgoDVUHwpmPKV4oElNHGRtEFAmqhSykRHHRpbGxlQGRl
Ymlhbi5vcmcACgkQV4oElNHGRtETMQ/+I25N/jMbHRQ1qxwVPxamyuPTNSZquDWJ
2JMokFkjY7a+c/LWHlDptBfsU9GGoTlU6yEAkNMZyPeptimymnid/WEYi20F3XiD
ha7hCkL7lVPgaBryOmu0D4ypsBn397Q/rtu2SBIn2y9dq9gKOamUcVU6Uk5Xn2v6
t6/W4NwgVPfvQBnsrQTVQ+NAC25BjLTAuWvlHLMzjwOtAsWmy/oOmv0qixXBi3Bn
3exJHE6LC0gIzlA1KJEEfQx9WpS6oWFNOTR0smwIuMAa/Ls7oTLQrjqAb+1V/Cx1
9erQAVe2335pFdER+yzhjYDFmPzLOnhoki1VauzK7rvS5s7sYQ1akOpk0aAcXSuz
4CwiNB4BkyVqLybqJevdHEcgWNP8hKivq/DYm5j/JuV+RUxhnw3iOuYSNsoQ1AiL
oHz71Hvr7nWByeDs6ryS1Klmf3yi/WCmgwzCQkoy/cSPHetiBHQp2pmx0ekhH/gk
vqYNtENoz5etBiK4wY/gzQMAn0lmrYSWsr3fAAU69Vn0OTlYxhlBBByFt1+9Vjar
K50Kp+SIyyfT8dpPIQnju+FuhjT4VSWgtwfjuwPGA+bIlW37wvirgCg7Q73eW1Fo
mLC4jBeDlDFIoX5jz7qWXsSWgpCCYc9X+C4l6DVnN8aHUepbmOhWJS8jgX0hOadi
KZbLEGiOcHI=
=6TMj
-----END PGP SIGNATURE-----