diff options
Diffstat (limited to 'pkgs/development/python-modules/biopandas/default.nix')
-rw-r--r-- | pkgs/development/python-modules/biopandas/default.nix | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/biopandas/default.nix b/pkgs/development/python-modules/biopandas/default.nix index b947164f1d882..fcb3bbe926d14 100644 --- a/pkgs/development/python-modules/biopandas/default.nix +++ b/pkgs/development/python-modules/biopandas/default.nix @@ -7,9 +7,8 @@ mmtf-python, numpy, pandas, - pynose, pytestCheckHook, - pythonRelaxDepsHook, + fetchpatch2, }: buildPythonPackage rec { @@ -24,7 +23,21 @@ buildPythonPackage rec { hash = "sha256-1c78baBBsDyvAWrNx5mZI/Q75wyXv0DAwAdWm3EwX/I="; }; - nativeBuildInputs = [ pythonRelaxDepsHook ]; + 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" ]; @@ -37,10 +50,7 @@ buildPythonPackage rec { looseversion ]; - nativeCheckInputs = [ - pynose - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # require network access @@ -56,7 +66,7 @@ buildPythonPackage rec { meta = { description = "Working with molecular structures in pandas DataFrames"; homepage = "https://github.com/BioPandas/biopandas"; - changelog = "https://github.com/BioPandas/biopandas/releases/tag/${src.rev}"; + changelog = "https://github.com/BioPandas/biopandas/releases/tag/${lib.removePrefix "refs/tags/" src.rev}"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ natsukium ]; }; |