From db81c009cf52a26fd6c010c95fb8d76bc122a73c Mon Sep 17 00:00:00 2001 From: Sandro Date: Wed, 22 Jan 2025 09:32:15 +0100 Subject: [PATCH] Apply patch for NumPy 2.x This will allow `netpyne` to build again. --- python-bokeh.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/python-bokeh.spec b/python-bokeh.spec index 8d49f90..fa62df7 100644 --- a/python-bokeh.spec +++ b/python-bokeh.spec @@ -13,7 +13,7 @@ and data applications.} Name: python-%{pypi_name} Version: 2.3.0 -Release: 17%{?dist} +Release: 18%{?dist} Summary: Interactive plots and applications in the browser from Python # License breakdown: licensecheck -r . | sed '/UNKNOWN/ d' | sort -t ':' -k 2 @@ -202,6 +202,12 @@ BuildRequires: %{py3_dist typing_extensions} >= 3.7.4 %autosetup -n %{pypi_name}-%{version} -p1 rm -rf %{pypi_name}.egg-info +# Replace `np.bool8` with `np.bool_` for NumPy 2.x. +# This is for `netpyne` failing on the deprecated type alias. +# https://github.com/bokeh/bokeh/pull/12690 +sed -i 's/np\.bool8/np.bool_/g' $(grep -rl 'np\.bool8') + + %build %py3_build @@ -226,6 +232,9 @@ rm -f %{buildroot}/%{python3_sitelib}/bokeh/server/static/.keep %{python3_sitelib}/%{pypi_name} %changelog +* Wed Jan 22 2025 Sandro - 2.3.0-18 +- Apply patch for NumPy 2.x compatibility + * Sat Jan 18 2025 Fedora Release Engineering - 2.3.0-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild