From 29da54e3707f737aa8bda463bf2a4ff17b9edf34 Mon Sep 17 00:00:00 2001 From: chemonke Date: Sun, 17 May 2026 12:56:22 +0200 Subject: [PATCH] python3Packages.biopandas: fix numpy 2.4 compatibility --- pkgs/development/python-modules/biopandas/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) 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 ];