about summary refs log tree commit diff
path: root/pkgs/development/python-modules/apricot-select/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/apricot-select/default.nix')
-rw-r--r--pkgs/development/python-modules/apricot-select/default.nix17
1 files changed, 9 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/apricot-select/default.nix b/pkgs/development/python-modules/apricot-select/default.nix
index f05e9b8e5e95f..f6210fb426efb 100644
--- a/pkgs/development/python-modules/apricot-select/default.nix
+++ b/pkgs/development/python-modules/apricot-select/default.nix
@@ -2,10 +2,10 @@
   lib,
   buildPythonPackage,
   fetchFromGitHub,
+  fetchpatch2,
   apricot-select,
   numba,
   numpy,
-  pynose,
   pytestCheckHook,
   pythonOlder,
   scikit-learn,
@@ -29,9 +29,13 @@ buildPythonPackage rec {
     hash = "sha256-v9BHFxmlbwXVipPze/nV35YijdFBuka3gAl85AlsffQ=";
   };
 
-  postPatch = ''
-    sed -i '/"nose"/d' setup.py
-  '';
+  patches = [
+    # migrate to pytest, https://github.com/jmschrei/apricot/pull/43
+    (fetchpatch2 {
+      url = "https://github.com/jmschrei/apricot/commit/ffa5cce97292775c0d6890671a19cacd2294383f.patch?full_index=1";
+      hash = "sha256-9A49m4587kAPK/kzZBqMRPwuA40S3HinLXaslYUcWdM=";
+    })
+  ];
 
   build-system = [ setuptools ];
 
@@ -44,10 +48,7 @@ buildPythonPackage rec {
     tqdm
   ];
 
-  nativeCheckInputs = [
-    pynose
-    pytestCheckHook
-  ];
+  nativeCheckInputs = [ pytestCheckHook ];
 
   pythonImportsCheck = [ "apricot" ];