python3Packages.biopandas: fix numpy 2.4 compatibility (#521225)

This commit is contained in:
Vladimír Čunát
2026-06-02 06:28:54 +00:00
committed by GitHub
@@ -22,6 +22,12 @@ buildPythonPackage rec {
hash = "sha256-dUeGjDDz9VA1NrFLGKy0ebaa+MU4c1tHi5YYkAspLRk=";
};
postPatch = ''
substituteInPlace biopandas/mmtf/pandas_mmtf.py --replace-fail \
'int(np.argwhere(np.array(model_indices) > ch_idx)[0]) + 1' \
'int(np.argwhere(np.array(model_indices) > ch_idx)[0][0]) + 1'
'';
pythonRelaxDeps = [ "looseversion" ];
build-system = [ setuptools ];