File: python3.14.patch

package info (click to toggle)
nibabel 5.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 69,672 kB
  • sloc: python: 39,924; makefile: 271; ansic: 202; sh: 99
file content (24 lines) | stat: -rw-r--r-- 1,019 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: fix test failures with python3.14.
 Adapt to functools.partial becoming a method descriptor in Python 3.14
 .
 There is a second part for the patch, making adjustments to the
 argument parser invocation, following changes to argparse with the new
 interpreter version.
Author: Ben Beasley
Origin: upstream, https://github.com/nipy/nibabel/pull/1391
Bug: https://github.com/nipy/nibabel/issues/1390
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1121007
Reviewed-by: Étienne Mollier <emollier@debian.org>
Last-Update: 2025-12-04
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- nibabel.orig/nibabel/cmdline/roi.py
+++ nibabel/nibabel/cmdline/roi.py
@@ -44,6 +44,7 @@
     if args is None:
         args = sys.argv[1:]
     parser = argparse.ArgumentParser(
+        prog=os.path.basename(sys.argv[0]),
         description='Crop images to a region of interest',
         epilog='If a start or stop value is omitted, the start or end of the axis is assumed.',
     )