gnu: Add python-asdf-compression.

* gnu/packages/astronomy.scm (python-asdf-compression): New variable.

Change-Id: I221990d2f25f31dd5272a3ccc4c603da8dac353b
This commit is contained in:
Sharlatan Hellseher 2024-03-10 11:10:56 +00:00
parent 7d817bb380
commit 6933d9ef0a
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -4322,6 +4322,50 @@ (define-public python-asdf
implementation of the ASDF Standard.")
(license license:bsd-3)))
(define-public python-asdf-compression
;; TODO: No release, change to tag when it's ready.
(let ((commit "57cc7e76fb4163be3e99fb740b36b5ec5ae96e49")
(revision "0"))
(package
(name "python-asdf-compression")
(version (git-version "0.0.1" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/asdf-format/asdf-compression")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32 "1g6iiyls950k66dmd0pbqqdvz74kksc4j191n0ik6fhjnkiwifgs"))))
(build-system pyproject-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(add-before 'build 'set-version
(lambda _
(setenv "SETUPTOOLS_SCM_PRETEND_VERSION" "0.0.1"))))))
(native-inputs
(list python-numpy
python-pytest
python-semantic-version
python-setuptools-scm))
(propagated-inputs
(list python-asdf
python-blosc
python-lz4
python-zstandard))
(home-page "https://github.com/asdf-format/asdf-fits-schemas")
(synopsis "ASDF extension to support various compression algorithms")
(description
"This package includes a plugin for the Python library ASDF to add
support for reading and writing various compression algorithms including:
@url{https://www.blosc.org/python-blosc/reference.html,Blosc},
@url{https://python-lz4.readthedocs.io/en/stable/lz4.frame.html,LZ4 Frame},
@url{http://facebook.github.io/zstd/,Zstandard}.")
(license license:bsd-3))))
(define-public python-asdf-standard
(package
(name "python-asdf-standard")