aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2023-05-24 22:51:38 +0100
committerVinicius Monego <monego@posteo.net>2023-05-25 21:20:00 -0300
commit2dccb0e72413df3855e60fb885fea4f8505fdce1 (patch)
treef914be111bb5ea8e15217a24104e0dc798746466
parent6a7c842cf97f36046f0ab1983fa739e90bd578ee (diff)
downloadguix-2dccb0e72413df3855e60fb885fea4f8505fdce1.tar.gz
guix-2dccb0e72413df3855e60fb885fea4f8505fdce1.zip
gnu: python-sunpy: Update to 4.1.5.
* gnu/packages/astronomy.scm (python-sunpy): Update to 4.1.5. [arguments]: In #:test-flags, skip 2 failing tests. In the 'prepare-test-environment phase, remove redundant substitutions. [native-inputs]: Add opencv. Signed-off-by: Vinicius Monego <monego@posteo.net>
-rw-r--r--gnu/packages/astronomy.scm32
1 files changed, 10 insertions, 22 deletions
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index d450460551..981a46f0d6 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -1885,16 +1885,21 @@ orbits described in TLE files.")
(define-public python-sunpy
(package
(name "python-sunpy")
- (version "4.1.1")
+ (version "4.1.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "sunpy" version))
(sha256
- (base32 "1h8dnsic96bxm5l278vk6jj5h4bh1b143fghsvv5rhigk137vysp"))))
+ (base32 "1j5g0ivsrc5ji9s7jc3kcbi2injfs3y31pm3priycljwcsxspkpm"))))
(build-system pyproject-build-system)
(arguments
(list
+ #:test-flags
+ #~(list "-k" (string-append
+ ;; XXX: Failed: DID NOT RAISE <class 'ModuleNotFoundError'>
+ "not test_main_nonexisting_module"
+ " and not test_main_stdlib_module"))
#:phases
#~(modify-phases %standard-phases
(add-before 'install 'writable-compiler
@@ -1902,26 +1907,10 @@ orbits described in TLE files.")
(make-file-writable "sunpy/_compiler.c")))
(add-before 'check 'prepare-test-environment
(lambda _
- (setenv "HOME" "/tmp")
- (make-file-writable "sunpy/_compiler.c")
- ;; TODO: (Sharlatan-20221106T115800+0000): Review failing tests
- (substitute* "sunpy/image/tests/test_transform.py"
- (("def test_clipping") "def __off_test_clipping")
- (("def test_nans") "def __off_test_nans")
- (("def test_endian") "def __off_test_endian"))
- (substitute* "sunpy/map/tests/test_mapbase.py"
- (("def test_derotating_nonpurerotation_pcij")
- "def __off_test_derotating_nonpurerotation_pcij"))
- (substitute* "sunpy/map/sources/tests/test_mdi_source.py"
- (("def test_synoptic_source")
- "def __off_test_synoptic_source"))
- (substitute* "sunpy/tests/tests/test_self_test.py"
- (("def test_main_nonexisting_module")
- "def __off_test_main_nonexisting_module")
- (("def test_main_stdlib_module")
- "def __off_test_main_stdlib_module")))))))
+ (setenv "HOME" "/tmp"))))))
(native-inputs
- (list python-aiohttp
+ (list opencv ; For tests, includes OpenCV-Python
+ python-aiohttp
python-extension-helpers
python-hvpy
python-packaging
@@ -1950,7 +1939,6 @@ orbits described in TLE files.")
python-matplotlib
python-mpl-animators
python-numpy
- ;; python-opencv-python ; not packed yet
python-pandas
python-reproject
python-scikit-image