Skip to content

Commit cc6bdf0

Browse files
authored
Merge pull request #330740 from pyrox0/denose/biopandas
python312Packages.biopandas: Remove nose dependency
2 parents 9f10e67 + 58db620 commit cc6bdf0

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

pkgs/development/python-modules/biopandas/default.nix

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@
55
setuptools,
66
looseversion,
77
mmtf-python,
8-
nose,
98
numpy,
109
pandas,
1110
pytestCheckHook,
12-
pythonOlder,
11+
fetchpatch2,
1312
}:
1413

1514
buildPythonPackage rec {
@@ -24,6 +23,22 @@ buildPythonPackage rec {
2423
hash = "sha256-1c78baBBsDyvAWrNx5mZI/Q75wyXv0DAwAdWm3EwX/I=";
2524
};
2625

26+
patches = [
27+
# Needed for below patch to apply properly
28+
(fetchpatch2 {
29+
name = "deprecate-mmtf-parsing.patch";
30+
url = "https://github.com/BioPandas/biopandas/commit/7a1517dbe76f2c70da8edb35f90c9fa69254e726.patch?full_index=1";
31+
hash = "sha256-RFtXFqUYl8GnZ319HsBwx5SUbfUDnR66Ppakdvtg/wI=";
32+
})
33+
# Remove nose as a dependency.
34+
(fetchpatch2 {
35+
name = "remove-nose.patch";
36+
url = "https://github.com/BioPandas/biopandas/commit/67aa2f237c70c826cd9ab59d6ae114582da2112f.patch?full_index=1";
37+
hash = "sha256-fVl57/vGuzlYX/MBZnma1ZFCVmIpjr1k8t3bUJnb/uI=";
38+
excludes = [ "setup.py" ];
39+
})
40+
];
41+
2742
pythonRelaxDeps = [ "looseversion" ];
2843

2944
build-system = [ setuptools ];
@@ -35,10 +50,7 @@ buildPythonPackage rec {
3550
looseversion
3651
];
3752

38-
nativeCheckInputs = [
39-
nose
40-
pytestCheckHook
41-
];
53+
nativeCheckInputs = [ pytestCheckHook ];
4254

4355
disabledTests = [
4456
# require network access

0 commit comments

Comments
 (0)