From 8e97a39df885961d7ec30fb80a01d2a26f9318e9 Mon Sep 17 00:00:00 2001 From: Alfredo Tupone Date: Mon, 25 May 2026 23:10:19 +0200 Subject: [PATCH] sci-ml/evaluate: fix for pandas-3 Signed-off-by: Alfredo Tupone --- ...evaluate-0.4.6.ebuild => evaluate-0.4.6-r1.ebuild} | 7 +++++-- sci-ml/evaluate/files/evaluate-0.4.6-pandas3.patch | 11 +++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) rename sci-ml/evaluate/{evaluate-0.4.6.ebuild => evaluate-0.4.6-r1.ebuild} (94%) create mode 100644 sci-ml/evaluate/files/evaluate-0.4.6-pandas3.patch diff --git a/sci-ml/evaluate/evaluate-0.4.6.ebuild b/sci-ml/evaluate/evaluate-0.4.6-r1.ebuild similarity index 94% rename from sci-ml/evaluate/evaluate-0.4.6.ebuild rename to sci-ml/evaluate/evaluate-0.4.6-r1.ebuild index b4ee794a07299..12dd90f698855 100644 --- a/sci-ml/evaluate/evaluate-0.4.6.ebuild +++ b/sci-ml/evaluate/evaluate-0.4.6-r1.ebuild @@ -28,7 +28,7 @@ RDEPEND=" dev-python/matplotlib[${PYTHON_USEDEP}] dev-python/multiprocess[${PYTHON_USEDEP}] dev-python/numpy[${PYTHON_USEDEP}] - dev-python/pandas[${PYTHON_USEDEP}] + >=dev-python/pandas-3[${PYTHON_USEDEP}] dev-python/pyarrow[${PYTHON_USEDEP},parquet] dev-python/requests[${PYTHON_USEDEP}] dev-python/tqdm[${PYTHON_USEDEP}] @@ -59,7 +59,10 @@ BDEPEND="test? ( ') )" -PATCHES=( "${FILESDIR}"/${PN}-0.4.0-tests.patch ) +PATCHES=( + "${FILESDIR}"/${PN}-0.4.0-tests.patch + "${FILESDIR}"/${P}-pandas3.patch +) EPYTEST_PLUGINS=() distutils_enable_tests pytest diff --git a/sci-ml/evaluate/files/evaluate-0.4.6-pandas3.patch b/sci-ml/evaluate/files/evaluate-0.4.6-pandas3.patch new file mode 100644 index 0000000000000..acc3c958f6c47 --- /dev/null +++ b/sci-ml/evaluate/files/evaluate-0.4.6-pandas3.patch @@ -0,0 +1,11 @@ +--- a/src/evaluate/visualization.py 2026-05-25 23:04:36.112310403 +0200 ++++ b/src/evaluate/visualization.py 2026-05-25 23:05:32.135713980 +0200 +@@ -225,6 +225,7 @@ + format_cfg=format_cfg, + ) + for g in zip(data.index): +- radar.plot(data.loc[g].values, label=g, marker=format_cfg["marker"], markersize=format_cfg["markersize"]) ++ key = g[0] if isinstance(g, tuple) and len(g) == 1 else g ++ radar.plot(data.loc[key].values, label=key, marker=format_cfg["marker"], markersize=format_cfg["markersize"]) + radar.use_legend(**{"loc": format_cfg["legend_loc"], "bbox_to_anchor": format_cfg["bbox_to_anchor"]}) + return fig