mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-einops: Update to 0.8.1.
* gnu/packages/python-science.scm (python-einops): Update to 0.8.1. [native-inputs]: Remove jupyter. Change-Id: I2d5c710990a77ca0fef480eaed4b59da6a10db27
This commit is contained in:
parent
b0e5f63bd5
commit
5a7170e7ed
1 changed files with 32 additions and 25 deletions
|
@ -2734,35 +2734,42 @@ necessary for reproducing the experiments in the paper.")
|
||||||
(define-public python-einops
|
(define-public python-einops
|
||||||
(package
|
(package
|
||||||
(name "python-einops")
|
(name "python-einops")
|
||||||
(version "0.6.1")
|
(version "0.8.1")
|
||||||
(source (origin
|
(source
|
||||||
(method git-fetch) ;PyPI misses .ipynb files required for tests
|
(origin
|
||||||
(uri (git-reference
|
(method git-fetch) ;PyPI misses .ipynb files required for tests
|
||||||
(url "https://github.com/arogozhnikov/einops")
|
(uri (git-reference
|
||||||
(commit (string-append "v" version))))
|
(url "https://github.com/arogozhnikov/einops")
|
||||||
(file-name (git-file-name name version))
|
(commit (string-append "v" version))))
|
||||||
(sha256
|
(file-name (git-file-name name version))
|
||||||
(base32
|
(sha256
|
||||||
"1h8p39kd7ylg99mh620xr20hg7v78x1jnj6vxwk31rlw2dmv2dpr"))))
|
(base32 "07xd5a4sya3mr003f17hxykcbq3zf3mnr51qagv7fy55qcnbkn97"))))
|
||||||
(build-system pyproject-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list #:phases #~(modify-phases %standard-phases
|
(list
|
||||||
(add-after 'unpack 'set-backend
|
#:test-flags
|
||||||
(lambda _
|
;; Skip optional dependency on Jupyter during tests.
|
||||||
;; Einops supports different backends, but we test
|
#~(list "--ignore=scripts/test_notebooks.py")
|
||||||
;; only NumPy for availability and simplicity.
|
#:phases
|
||||||
(setenv "EINOPS_TEST_BACKENDS" "numpy"))))))
|
#~(modify-phases %standard-phases
|
||||||
(native-inputs (list jupyter
|
(add-after 'unpack 'set-backend
|
||||||
python-hatchling
|
(lambda _
|
||||||
python-nbconvert
|
;; Einops supports different backends, but we test
|
||||||
python-nbformat
|
;; only NumPy for availability and simplicity.
|
||||||
python-parameterized
|
(setenv "EINOPS_TEST_BACKENDS" "numpy"))))))
|
||||||
python-pytest))
|
(native-inputs
|
||||||
(propagated-inputs (list python-numpy))
|
(list python-hatchling
|
||||||
|
python-nbconvert
|
||||||
|
python-nbformat
|
||||||
|
python-parameterized
|
||||||
|
python-pytest))
|
||||||
|
(propagated-inputs
|
||||||
|
(list python-numpy))
|
||||||
(home-page "https://einops.rocks/")
|
(home-page "https://einops.rocks/")
|
||||||
(synopsis "Tensor operations for different backends")
|
(synopsis "Tensor operations for different backends")
|
||||||
(description "Einops provides a set of tensor operations for NumPy and
|
(description
|
||||||
multiple deep learning frameworks.")
|
"Einops provides a set of tensor operations for NumPy and multiple deep
|
||||||
|
learning frameworks.")
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
(define-public python-xarray
|
(define-public python-xarray
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue