gnu: python-cdflib: Update to 0.4.9.

* gnu/packages/astronomy.scm (python-cdflib): Update to 0.4.9.
[build-system]: Use pyproject-build-system to simplify package.
[description]: Expand acronym for CDF.

Signed-off-by: Christopher Baines <mail@cbaines.net>
This commit is contained in:
Sharlatan Hellseher 2022-11-22 23:23:12 +00:00 committed by Christopher Baines
parent 6ffe15bda7
commit 7fa8c05753
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -1101,7 +1101,7 @@ (define-public python-astroquery
(define-public python-cdflib (define-public python-cdflib
(package (package
(name "python-cdflib") (name "python-cdflib")
(version "0.4.4") (version "0.4.9")
(source (source
(origin (origin
(method git-fetch) ; no tests in pypi archive (method git-fetch) ; no tests in pypi archive
@ -1110,16 +1110,14 @@ (define-public python-cdflib
(commit version))) (commit version)))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "1h7750xvr6qbhnl2w3bhccs3pwp3hci3624pvvxym0yjinmskjlz")))) (base32 "1k557najk7ln293zwyghnhw48ays3nqf9s94kibsc7r70c2q7p08"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
(list #:phases (list #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(replace 'check (add-before 'check 'set-home-env
(lambda* (#:key tests? #:allow-other-keys) (lambda _
(when tests? (setenv "HOME" (getcwd)))))))
(setenv "HOME" (getcwd))
(invoke "pytest" "-vv" "tests")))))))
(propagated-inputs (propagated-inputs
(list python-attrs python-numpy)) (list python-attrs python-numpy))
(native-inputs (native-inputs
@ -1131,7 +1129,8 @@ (define-public python-cdflib
python-xarray)) python-xarray))
(home-page "https://github.com/MAVENSDC/cdflib") (home-page "https://github.com/MAVENSDC/cdflib")
(synopsis "Python library to deal with NASA's CDF astronmical data format") (synopsis "Python library to deal with NASA's CDF astronmical data format")
(description "This package provides a Python CDF reader toolkit (description "This package provides a Python @acronym{CDF, Computable
Document Format} reader toolkit.
It provides the following functionality: It provides the following functionality:
@itemize @itemize
@item Ability to read variables and attributes from CDF files @item Ability to read variables and attributes from CDF files
@ -1140,7 +1139,7 @@ (define-public python-cdflib
time formats time formats
@item Can convert CDF files into XArray Dataset objects and vice versa, @item Can convert CDF files into XArray Dataset objects and vice versa,
attempting to maintain ISTP compliance attempting to maintain ISTP compliance
@end itemize\n") @end itemize")
(license license:expat))) (license license:expat)))
(define-public python-ephem (define-public python-ephem