guix_mirror_bot pushed a commit to branch astro-update
in repository guix.
commit b5bd57e5d234bf10543998aaeb0cc6f75954cbe6
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Thu Mar 19 21:23:57 2026 +0000
gnu: python-space-dolphin: Update to 1.2.0.
* gnu/packages/astronomy.scm (python-space-dolphin): Update to 1.2.0.
[source]: Switch to git-fetch.
[arguments] <tests?, test-flags>: Enable some portion of tests.
[native-inputs]: Add python-pytest.
Change-Id: I2ecef80f095dfeb2c2feede9305764e9301cbab5
---
gnu/packages/astronomy.scm | 35 ++++++++++++++++++++++++++++-------
1 file changed, 28 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index a61726a35b..9796068e71 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -9309,14 +9309,36 @@ but has evolved to support other missions as well.")
(version "1.2.0")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "space_dolphin" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/ajshajib/dolphin")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "162899av6mp0wkjbas07xkqjr70qbvirgnnch7hb501gz0rb50bh"))))
+ (base32 "0jyfndk08zi062i5psy4pavyr6jfqdrkhwp0iqiryrr1cqq4bc98"))))
(build-system pyproject-build-system)
(arguments
(list
- #:tests? #f ;TODO: Enable when tensorflow is fixed.
+ ;; tests: 77 passed, 4 deselected, 394 warnings
+ #:test-flags
+ #~(list "--ignore=test/test_ai/test_modeler.py"
+ "--ignore=test/test_ai/test_vision.py"
+ "--ignore=test/test_pipeline.py"
+ #$@(map (lambda (ls) (string-append "--deselect=test/"
+ (string-join ls "::")))
+ ;; AttributeError: `np.string_` was removed in the NumPy
+ ;; 2.0 release. Use `np.bytes_` instead.
+ '(("test_analysis/test_output.py" "TestOutput"
+ "test_load_output")
+ ("test_processor/test_core.py" "TestProcessor"
+ "test_swim")
+ ("test_processor/test_files.py" "TestFileSystem"
+ "test_save_load_output_h5")
+ ;; OSError: Could not find a suitable TLS CA
+ ;; certificate bundle, invalid path:
+ ;; /etc/ssl/certs/ca-certificates.crt
+ ("test_processor/test_files.py" "TestFileSystem"
+ "test_get_trained_model_file_path"))))
#:phases
#~(modify-phases %standard-phases
(add-before 'check 'pre-check
@@ -9325,7 +9347,7 @@ but has evolved to support other missions as well.")
;; available for file '<...>/lenstronomy/Util/util.py'.
(setenv "NUMBA_CACHE_DIR" "/tmp"))))))
(native-inputs
- (list ;; python-pytest
+ (list python-pytest
python-setuptools))
(propagated-inputs
(list python-astropy
@@ -9339,8 +9361,7 @@ but has evolved to support other missions as well.")
python-pyyaml
python-schwimmbad
python-scipy
- python-tqdm
- #;tensorflow)) ;XXX: currenlty broken on master, see guix/guix#1436.
+ python-tqdm))
(home-page "https://github.com/ajshajib/dolphin")
(synopsis "Automated pipeline for lens modeling based on lenstronomy")
(description