python3Packages.biopandas: fix numpy 2.4 compatibility
This commit is contained in:
@@ -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 ];
|
||||
|
||||
Reference in New Issue
Block a user