guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit 7ad31f3c9ce234c3a148df2d5658fd8717adb5dd
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sun Dec 14 22:36:04 2025 +0000
gnu: python-losoto: Update to 2.6.0.
* gnu/packages/astronomy.scm (python-losoto): Update to 2.6.0.
[arguments] <tests?>: Disable for now.
<phases>: Add 'set-version, and 'relax-requirements.
[propagated-inputs]: Remove python-configparser; add
python-lofar-parameterset and python-progressbar2.
[native-inputs]: Remove python-cython and python-wheel; add
python-pytest and python-setuptools-scm.
Change-Id: I314f87b68e3b475c90a59adb94ce904408f90be3
---
gnu/packages/astronomy.scm | 36 +++++++++++++++++++++---------------
1 file changed, 21 insertions(+), 15 deletions(-)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 1fc2790085..aca0655e00 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -6245,36 +6245,42 @@ supports only the basic features of the original.")
(define-public python-losoto
(package
(name "python-losoto")
- (version "2.5.0")
+ (version "2.6.0")
(source
(origin
- (method git-fetch) ; no tests data in the PyPI tarball
+ (method git-fetch)
(uri (git-reference
- (url "https://github.com/revoltek/losoto")
- (commit version)))
+ (url "https://github.com/revoltek/losoto")
+ (commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "1bpp156rrn35x1350kn1g7h6s9427yh1mhs5dbdyzy264z1m2gdr"))))
+ (base32 "0wqqjc7iaphiq517n939s3wmsypyxwjaqrr51q21343m2blrl40m"))))
(build-system pyproject-build-system)
(arguments
(list
+ ;; tests: 19 failed, 23 passed, 53 warnings
+ ;; XXX: See: <https://github.com/revoltek/losoto/issues/186>.
+ #:tests? #f
#:phases
#~(modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- ;; Test steps are taken from GitHub Actions
- ;; <.github/workflows/python.yml>.
- (invoke "python" "tools/losoto_test.py")))))))
+ (add-after 'unpack 'set-version
+ (lambda _
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))
+ (add-after 'unpack 'relax-requirements
+ (lambda _
+ (substitute* "pyproject.toml"
+ ;; XXX: See: <https://github.com/revoltek/losoto/issues/187>.
+ (("progressbar") "progressbar2")))))))
(native-inputs
- (list python-cython
+ (list python-pytest
python-setuptools
- python-wheel))
+ python-setuptools-scm))
(propagated-inputs
- (list python-configparser
+ (list python-casacore
+ python-lofar-parameterset
python-matplotlib
python-numpy
- python-casacore
+ python-progressbar2
python-scipy
python-tables))
(home-page "https://github.com/revoltek/losoto")