diff options
Diffstat (limited to 'pkgs/development/python-modules/astroquery/default.nix')
-rw-r--r-- | pkgs/development/python-modules/astroquery/default.nix | 56 |
1 files changed, 33 insertions, 23 deletions
diff --git a/pkgs/development/python-modules/astroquery/default.nix b/pkgs/development/python-modules/astroquery/default.nix index 610238559a2ce..7988d75a90447 100644 --- a/pkgs/development/python-modules/astroquery/default.nix +++ b/pkgs/development/python-modules/astroquery/default.nix @@ -1,30 +1,33 @@ -{ 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 { pname = "astroquery"; - version = "0.4.6"; + version = "0.4.7"; format = "pyproject"; src = fetchPypi { inherit pname version; - hash = "sha256-MHylVMtzSgypoi+G9e/+fkE6+ROuZeFXiXLYR7H+E+4="; + hash = "sha256-BH+6ywpPrsTNtiZ16RnCRMHDXmYQRPy7bJqTMzF0fsk="; }; disabled = !isPy3k; @@ -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 |