From 58db6204aca1cd69edb6d1e39b7b56e6e6cd6a0a Mon Sep 17 00:00:00 2001 From: Pyrox Date: Sun, 28 Jul 2024 18:41:26 -0400 Subject: [PATCH] python312Packages.biopandas: Remove nose dependency --- .../python-modules/biopandas/default.nix | 24 ++++++++++++++----- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/biopandas/default.nix b/pkgs/development/python-modules/biopandas/default.nix index 1102457cb94d..998974d90ee1 100644 --- a/pkgs/development/python-modules/biopandas/default.nix +++ b/pkgs/development/python-modules/biopandas/default.nix @@ -5,11 +5,10 @@ setuptools, looseversion, mmtf-python, - nose, numpy, pandas, pytestCheckHook, - pythonOlder, + fetchpatch2, }: buildPythonPackage rec { @@ -24,6 +23,22 @@ buildPythonPackage rec { hash = "sha256-1c78baBBsDyvAWrNx5mZI/Q75wyXv0DAwAdWm3EwX/I="; }; + patches = [ + # Needed for below patch to apply properly + (fetchpatch2 { + name = "deprecate-mmtf-parsing.patch"; + url = "https://github.com/BioPandas/biopandas/commit/7a1517dbe76f2c70da8edb35f90c9fa69254e726.patch?full_index=1"; + hash = "sha256-RFtXFqUYl8GnZ319HsBwx5SUbfUDnR66Ppakdvtg/wI="; + }) + # Remove nose as a dependency. + (fetchpatch2 { + name = "remove-nose.patch"; + url = "https://github.com/BioPandas/biopandas/commit/67aa2f237c70c826cd9ab59d6ae114582da2112f.patch?full_index=1"; + hash = "sha256-fVl57/vGuzlYX/MBZnma1ZFCVmIpjr1k8t3bUJnb/uI="; + excludes = [ "setup.py" ]; + }) + ]; + pythonRelaxDeps = [ "looseversion" ]; build-system = [ setuptools ]; @@ -35,10 +50,7 @@ buildPythonPackage rec { looseversion ]; - nativeCheckInputs = [ - nose - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # require network access