[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#68641] [PATCH 09/19] gnu: python-sunpy: Update to 5.1.1.
From: |
Sharlatan Hellseher |
Subject: |
[bug#68641] [PATCH 09/19] gnu: python-sunpy: Update to 5.1.1. |
Date: |
Sun, 21 Jan 2024 16:53:49 +0000 |
* gnu/packages/astronomy.scm (python-sunpy): Update to 5.1.1.
[arguments]<#:test-flags>: Ignore test_spice.py as SpicePy is not packed
yet and python-spicepy is optional.
<#:phases>{prepare-test-environment}: Add pytest.ini configuration file
to fix tests.
Change-Id: Icfb05ce29b376a05291e9f7020170e389d0081d2
---
gnu/packages/astronomy.scm | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index ce84b50e54..d757fc75d9 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -2440,13 +2440,13 @@ (define-public python-sgp4
(define-public python-sunpy
(package
(name "python-sunpy")
- (version "5.0.1")
+ (version "5.1.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "sunpy" version))
(sha256
- (base32 "1r4phc91k527kvpa2jd1d417x97wqyrm3ydayr9hshwz1k5v5ngf"))))
+ (base32 "07rfdj4v29kcb718sgjfsagazvnl11r01ciqjvazr5x3yadfqrwk"))))
(build-system pyproject-build-system)
(arguments
(list
@@ -2456,7 +2456,9 @@ (define-public python-sunpy
;; It struggles to find python-opencsv package info with
;; 'importlib.metadata'
"not test_main_nonexisting_module"
- " and not test_main_stdlib_module"))
+ " and not test_main_stdlib_module")
+ ;; Requries SpicePy not packed in Guix yet.
+ "--ignore=sunpy/coordinates/tests/test_spice.py")
#:phases
#~(modify-phases %standard-phases
(add-before 'install 'writable-compiler
@@ -2464,7 +2466,11 @@ (define-public python-sunpy
(make-file-writable "sunpy/_compiler.c")))
(add-before 'check 'prepare-test-environment
(lambda _
- (setenv "HOME" "/tmp"))))))
+ (setenv "HOME" "/tmp")
+ (call-with-output-file "pytest.ini"
+ (lambda (port)
+ (format port "[pytest]
+python_files = test_*.py"))))))))
(native-inputs
(list opencv ; For tests, includes OpenCV-Python
python-aiohttp
@@ -2501,6 +2507,7 @@ (define-public python-sunpy
python-scikit-image
python-scipy
python-semantic-version
+ ;; python-spiceypy ; Not packed yet in Guix, long jorney.
python-sqlalchemy
python-tqdm
python-zeep))
--
2.41.0
- [bug#68641] [PATCH 00/19] gnu: Astronomy 2024/01 updates., Sharlatan Hellseher, 2024/01/21
- [bug#68641] [PATCH 01/19] gnu: stellarium: Update to 23.4., Sharlatan Hellseher, 2024/01/21
- [bug#68641] [PATCH 06/19] gnu: python-drms: Update to 0.7.1., Sharlatan Hellseher, 2024/01/21
- [bug#68641] [PATCH 03/19] gnu: gpredict: Update home-page and description., Sharlatan Hellseher, 2024/01/21
- [bug#68641] [PATCH 09/19] gnu: python-sunpy: Update to 5.1.1.,
Sharlatan Hellseher <=
- [bug#68641] [PATCH 05/19] gnu: python-crds: Update to 11.17.14., Sharlatan Hellseher, 2024/01/21
- [bug#68641] [PATCH 04/19] gnu: libxisf: Update to 0.2.11., Sharlatan Hellseher, 2024/01/21
- [bug#68641] [PATCH 14/19] gnu: python-tweakwcs: Update to 0.8.6., Sharlatan Hellseher, 2024/01/21
- [bug#68641] [PATCH 11/19] gnu: Add python-dust-extinction., Sharlatan Hellseher, 2024/01/21
- [bug#68641] [PATCH 12/19] gnu: Add python-specutils., Sharlatan Hellseher, 2024/01/21
- [bug#68641] [PATCH 08/19] gnu: python-stcal: Update to 1.5.2., Sharlatan Hellseher, 2024/01/21
- [bug#68641] [PATCH 07/19] gnu: python-pyvo: Update to 1.5., Sharlatan Hellseher, 2024/01/21
- [bug#68641] [PATCH 15/19] gnu: python-skyfield: Update to 1.47., Sharlatan Hellseher, 2024/01/21
- [bug#68641] [PATCH 10/19] gnu: Add python-ndcube., Sharlatan Hellseher, 2024/01/21