From 58bb26e31b9f5cd54a75da16d1ce47356c871f4c Mon Sep 17 00:00:00 2001 From: Benjamin A. Beasley Date: Mar 07 2023 15:37:12 +0000 Subject: Work around numpy.int removal (close RHBZ#2176146) --- diff --git a/libsonata.spec b/libsonata.spec index 68622e4..9a0e1e0 100644 --- a/libsonata.spec +++ b/libsonata.spec @@ -64,6 +64,8 @@ BuildRequires: python3-h5py %autosetup -n libsonata-%{version} -S git rm -rf libsonata.egg-info rm -rf extlib/{Catch2,Highfive,fmt,nlohmann} +# Work around np.int removal; it was only an alias anyway +sed -r -i 's/\bnp\.(int)/\1/' python/tests/test.py # Comment out to remove /usr/bin/env shebangs # Can use something similar to correct/remove /usr/bin/python shebangs also