about summary refs log tree commit diff
path: root/pkgs/development/python-modules/astroquery/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/astroquery/default.nix')
-rw-r--r--pkgs/development/python-modules/astroquery/default.nix52
1 files changed, 31 insertions, 21 deletions
diff --git a/pkgs/development/python-modules/astroquery/default.nix b/pkgs/development/python-modules/astroquery/default.nix
index 070238d8b2c49..7988d75a90447 100644
--- a/pkgs/development/python-modules/astroquery/default.nix
+++ b/pkgs/development/python-modules/astroquery/default.nix
@@ -1,20 +1,23 @@
-{ pkgs
-, buildPythonPackage
-, fetchPypi
-, astropy
-, requests
-, keyring
-, beautifulsoup4
-, html5lib
-, matplotlib
-, pillow
-, pytest
-, pytest-astropy
-, pytestCheckHook
-, pyvo
-, astropy-helpers
-, setuptools
-, isPy3k
+{
+  pkgs,
+  buildPythonPackage,
+  fetchPypi,
+  astropy,
+  requests,
+  keyring,
+  beautifulsoup4,
+  html5lib,
+  matplotlib,
+  pillow,
+  pytest,
+  pytest-astropy,
+  pytest-dependency,
+  pytest-rerunfailures,
+  pytestCheckHook,
+  pyvo,
+  astropy-helpers,
+  setuptools,
+  isPy3k,
 }:
 
 buildPythonPackage rec {
@@ -38,24 +41,31 @@ buildPythonPackage rec {
     pyvo
   ];
 
-  nativeBuildInputs = [ astropy-helpers setuptools ];
+  nativeBuildInputs = [
+    astropy-helpers
+    setuptools
+  ];
 
   # Disable automatic update of the astropy-helper module
   postPatch = ''
     substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False"
   '';
 
-  nativeCheckInputs = [
+  nativeCheckInputs = [ pytestCheckHook ];
+
+  checkInputs = [
     matplotlib
     pillow
     pytest
     pytest-astropy
-    pytestCheckHook
+    pytest-dependency
+    pytest-rerunfailures
   ];
 
   pytestFlagsArray = [
     # DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13
-    "-W" "ignore::DeprecationWarning"
+    "-W"
+    "ignore::DeprecationWarning"
   ];
 
   # Tests must be run in the build directory. The tests create files