~ruther/guix-local

3e4caa25a32836970c18c4817eaa66dbf28260c4 — Sharlatan Hellseher 4 months ago 0e1c6ce
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
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
1 files changed, 21 insertions(+), 15 deletions(-)

M gnu/packages/astronomy.scm
M gnu/packages/astronomy.scm => gnu/packages/astronomy.scm +21 -15
@@ 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")