~ruther/guix-local

0a8a855eb2291e05ac958893c12b69810a217a1c — Sharlatan Hellseher 2 months ago 239357d
gnu: python-cdflib: Update to 1.3.7.

* gnu/packages/astronomy.scm (python-cdflib): Update to 1.3.7.
[source] <url>: Fix permanent redirection.
[arguments] <phases>: Add 'fix-pytest-config.
[native-inputs]: Remove python-pytest-cov.
[home-page]: Fix permanent redirection.

Change-Id: I86c72969afb0c96ad5207f18490af69475857bd3
1 files changed, 20 insertions(+), 15 deletions(-)

M gnu/packages/astronomy.scm
M gnu/packages/astronomy.scm => gnu/packages/astronomy.scm +20 -15
@@ 3692,37 3692,42 @@ bad pixel tracking throughout the reduction process.")
(define-public python-cdflib
  (package
    (name "python-cdflib")
    (version "1.3.6")
    (version "1.3.7")
    (source
     (origin
       (method git-fetch)               ; no tests in PyPI release
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/MAVENSDC/cdflib")
             (commit version)))
              (url "https://github.com/lasp/cdflib")
              (commit version)))
       (file-name (git-file-name name version))
       (sha256
        (base32 "1rlzmwnlz77n8c62h050jc2njy10bfby671p3w7y6r6y6642xrdi"))))
        (base32 "1ky54sg21g9mcgg8cimkb5bpmz4kl3yfgd1gk99s687lj1qm9v31"))))
    (build-system pyproject-build-system)
    (arguments
     (list #:phases
           #~(modify-phases %standard-phases
               (add-before 'build 'set-env-version
                 (lambda _
                   (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))
               (add-before 'check 'set-home-env
                 (lambda _
                   (setenv "HOME" (getcwd)))))))
     (list
      ;; tests: 71 passed, 26 skipped, 7 warnings
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'fix-pytest-config
            (lambda _
              (substitute* "pyproject.toml"
                ((" --cov=cdflib --cov-report=xml") ""))))
          (add-before 'build 'set-env-version
            (lambda _
              (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))
          (add-before 'check 'set-home-env
            (lambda _
              (setenv "HOME" (getcwd)))))))
    (native-inputs
     (list python-astropy-minimal
           python-pytest
           python-pytest-cov
           python-pytest-remotedata
           python-setuptools
           python-setuptools-scm
           python-xarray))
    (propagated-inputs
     (list python-numpy))
    (home-page "https://github.com/MAVENSDC/cdflib")
    (home-page "https://github.com/lasp/cdflib")
    (synopsis "Python library to deal with NASA's CDF astronmical data format")
    (description
     "This package provides a Python @acronym{CDF, Computable Document Format}