Control: tags -1 patch
The attached patch resolves this issue. It has also been forwarded upstream:
https://github.com/matplotlib/basemap/pull/634
Kind Regards,
Bas
--
GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146 50D1 6750 F10A E88D 4AF1
diff -Nru basemap-1.4.1/debian/patches/pyshp-3.0.0.patch
basemap-1.4.1/debian/patches/pyshp-3.0.0.patch
--- basemap-1.4.1/debian/patches/pyshp-3.0.0.patch 1970-01-01
01:00:00.000000000 +0100
+++ basemap-1.4.1/debian/patches/pyshp-3.0.0.patch 2025-08-16
13:58:39.000000000 +0200
@@ -0,0 +1,15 @@
+Description: Fix compatibility with pyshp 3.0.0.
+Author: Bas Couwenberg <[email protected]>
+Bug: https://github.com/matplotlib/basemap/issues/632
+
+--- a/packages/basemap/src/mpl_toolkits/basemap/__init__.py
++++ b/packages/basemap/src/mpl_toolkits/basemap/__init__.py
+@@ -2149,7 +2149,7 @@ class Basemap(object):
+ "shapefile to geographic coordinates using the shpproj utility",
+ "from the shapelib tools
(http://shapelib.maptools.org/shapelib-tools.html)"])
+ shptype = shf.shapes()[0].shapeType
+- bbox = shf.bbox.tolist()
++ bbox = list(shf.bbox)
+ info = (shf.numRecords,shptype,bbox[0:2]+[0.,0.],bbox[2:]+[0.,0.])
+ npoly = 0
+ for shprec in shf.shapeRecords():
diff -Nru basemap-1.4.1/debian/patches/series
basemap-1.4.1/debian/patches/series
--- basemap-1.4.1/debian/patches/series 2024-08-30 18:21:19.000000000 +0200
+++ basemap-1.4.1/debian/patches/series 2025-08-16 12:52:14.000000000 +0200
@@ -8,3 +8,4 @@
#python3.12.patch
#xfail_some_tests.patch
fix-docs-links.patch
+pyshp-3.0.0.patch