[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
28/49: gnu: python-astroquery: Update to 0.4.7.
From: |
guix-commits |
Subject: |
28/49: gnu: python-astroquery: Update to 0.4.7. |
Date: |
Fri, 29 Mar 2024 11:15:25 -0400 (EDT) |
sharlatan pushed a commit to branch master
in repository guix.
commit 988c730a9a2b8ca836b9aa24db996c6a1f1e2a10
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Sun Mar 10 14:27:57 2024 +0000
gnu: python-astroquery: Update to 0.4.7.
* gnu/packages/astronomy.scm (python-astroquery): Update to 0.4.7.
[arguments] <#:test-flags>: Disable one failing test.
<#:phases>: Remove 'prepare-test-environment phase. Add custom 'check
phase.
Change-Id: I159a9d765de7f8de00c4bf226febfc90d2ba6c76
---
gnu/packages/astronomy.scm | 35 +++++++++++++++++++----------------
1 file changed, 19 insertions(+), 16 deletions(-)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index b3ce51c8df..efd70f5500 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -1739,34 +1739,37 @@ celestial-to-terrestrial coordinate transformations.")
(define-public python-astroquery
(package
(name "python-astroquery")
- (version "0.4.6")
+ (version "0.4.7")
(source
(origin
(method url-fetch)
(uri (pypi-uri "astroquery" version))
(sha256
- (base32 "1vhkzsqlgn3ji5by2rdf2gwklhbyzvpzb1iglalhqjkkrdaaaz1h"))))
+ (base32 "1jbyfhqk74wsdjxzqi0hcrgc7ha4q8cyjx96nv6w9bjg1b5vlzq4"))))
(build-system pyproject-build-system)
(arguments
(list
#:test-flags
#~(list "--pyargs" "astroquery"
- "-m" "not remote_data")
+ "-m" "not remote_data"
+ ;; Some tests failed with parallel run, see
+ ;; <https://github.com/astropy/astroquery/issues/2968>.
+ ;; "-n" "auto"
+ "-k" (string-append
+ ;; Failed: DID NOT RAISE <class
+ ;; 'astropy.utils.exceptions.AstropyDeprecationWarning'>
+ "not test_raises_deprecation_warning"))
#:phases
#~(modify-phases %standard-phases
- (add-before 'check 'prepare-test-environment
- (lambda _
- (setenv "HOME" (getcwd)) ; some tests need a writable home
- ;; To solve pytest/conftest issue. Pytest tries to load all
- ;; files with word 'test' in them.
- ;;
- ;; ImportError while loading conftest ...
- ;; _pytest.pathlib.ImportPathMismatchError: ...
- ;;
- (call-with-output-file "pytest.ini"
- (lambda (port)
- (format port "[pytest]
-python_files = test_*.py"))))))))
+ (replace 'check
+ (lambda* (#:key tests? test-flags #:allow-other-keys)
+ (when tests?
+ ;; Some tests require write access to $HOME.
+ (setenv "HOME" "/tmp")
+ ;; Step out of the source directory to avoid interference;
+ ;; we want to run the installed code with extensions etc.
+ (with-directory-excursion "/tmp"
+ (apply invoke "pytest" "-v" test-flags))))))))
(propagated-inputs
(list python-astropy
python-beautifulsoup4
- 27/49: gnu: python-pyvo: Update to 1.5.1., (continued)
- 27/49: gnu: python-pyvo: Update to 1.5.1., guix-commits, 2024/03/29
- 29/49: gnu: python-gwcs: Update to 0.21.0., guix-commits, 2024/03/29
- 31/49: gnu: python-suntime: Update to 1.3.2., guix-commits, 2024/03/29
- 32/49: gnu: python-suntime: Refresh package style., guix-commits, 2024/03/29
- 35/49: gnu: python-specutils: Update to 1.13.0., guix-commits, 2024/03/29
- 37/49: gnu: python-stcal: Enable sanity check., guix-commits, 2024/03/29
- 47/49: gnu: Add python-pytest-examples., guix-commits, 2024/03/29
- 42/49: gnu: Add python-asdf-compression., guix-commits, 2024/03/29
- 49/49: gnu: python-hvpy: Update to 1.1.0., guix-commits, 2024/03/29
- 03/49: gnu: python-blosc: Move to python-compression., guix-commits, 2024/03/29
- 28/49: gnu: python-astroquery: Update to 0.4.7.,
guix-commits <=
- 38/49: gnu: python-stdatamodels: Update to 1.10.0., guix-commits, 2024/03/29
- 41/49: gnu: Add python-asdf-zarr., guix-commits, 2024/03/29
- 46/49: gnu: Add python-cmyt., guix-commits, 2024/03/29
- 20/49: gnu: python-asdf-unit-schemas: Update to 0.2.0., guix-commits, 2024/03/29
- 19/49: gnu: python-cdflib: Enable all tests., guix-commits, 2024/03/29
- 23/49: gnu: python-asdf: Update to 3.1.0., guix-commits, 2024/03/29
- 36/49: gnu: python-stcal: Update to 1.6.1., guix-commits, 2024/03/29
- 44/49: gnu: Add python-nose-exclude., guix-commits, 2024/03/29
- 04/49: gnu: python-blosc: Simplify package., guix-commits, 2024/03/29
- 09/49: gnu: python-zarr: Update to 2.17.1., guix-commits, 2024/03/29