mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: Add python-gfloat.
* gnu/packages/python-xyz.scm (python-gfloat): New variable. Change-Id: I99cc0ed234ed3c0741cf9c1512669a37d046bbb3 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
parent
d880228bd8
commit
149faa0948
1 changed files with 43 additions and 0 deletions
|
@ -3081,6 +3081,49 @@ of a loop structure or other iterative computation.")
|
||||||
Python library and command line interface.")
|
Python library and command line interface.")
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
|
(define-public python-gfloat
|
||||||
|
(package
|
||||||
|
(name "python-gfloat")
|
||||||
|
(version "0.4")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (pypi-uri "gfloat" version))
|
||||||
|
(sha256
|
||||||
|
(base32 "0ffxg4igsx4mv4llig79zwla6al4wv9ny9sbnx25ha2ldq41a022"))))
|
||||||
|
(build-system pyproject-build-system)
|
||||||
|
(arguments
|
||||||
|
(list
|
||||||
|
#:test-flags
|
||||||
|
#~(list
|
||||||
|
;; XXX: Package python-ml-dtypes (tried unsuccessfully).
|
||||||
|
"--ignore=test/test_decode.py"
|
||||||
|
"--ignore=test/test_finfo.py"
|
||||||
|
"--ignore=test/test_jax.py"
|
||||||
|
"--ignore=test/test_microxcaling.py"
|
||||||
|
"--ignore=test/test_round.py"
|
||||||
|
;; Jupyter.
|
||||||
|
"--ignore-glob=docs/source/*.ipynb")))
|
||||||
|
(propagated-inputs (list python-more-itertools python-numpy))
|
||||||
|
(native-inputs (list python-nbval
|
||||||
|
python-pytest
|
||||||
|
python-setuptools
|
||||||
|
python-wheel))
|
||||||
|
(home-page "https://github.com/graphcore-research/gfloat")
|
||||||
|
(synopsis "Generic floating point handling in Python")
|
||||||
|
(description
|
||||||
|
"This package provides an implementation of generic floating point encode
|
||||||
|
and decode logic in Python. It handles various current and proposed floating
|
||||||
|
point types:
|
||||||
|
|
||||||
|
@itemize
|
||||||
|
@item IEEE 754: Binary16, Binary32
|
||||||
|
@item OCP Float8: E5M2, E4M3
|
||||||
|
@item IEEE WG P3109
|
||||||
|
@item OCP MX Formats: E2M1, M2M3, E3M2, E8M0, INT8, and the MX block formats.
|
||||||
|
@end itemize")
|
||||||
|
(license license:expat)))
|
||||||
|
|
||||||
(define-public python-glymur
|
(define-public python-glymur
|
||||||
(package
|
(package
|
||||||
(name "python-glymur")
|
(name "python-glymur")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue