diff --git a/pkgs/development/python-modules/biopandas/default.nix b/pkgs/development/python-modules/biopandas/default.nix index 98de452073da..a0359051aa20 100644 --- a/pkgs/development/python-modules/biopandas/default.nix +++ b/pkgs/development/python-modules/biopandas/default.nix @@ -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 ];