aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-05-08 12:04:45 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-05-08 12:05:04 +0100
commit5a7170e7ed550935628e4a76ee242eef75d30ccd (patch)
tree7b59b18755fd41b6c60edcf216f4c6cda3e43ae1
parentb0e5f63bd57a8b7fdf47bfe9ff1ff44f8211d207 (diff)
downloadguix-5a7170e7ed550935628e4a76ee242eef75d30ccd.tar.gz
guix-5a7170e7ed550935628e4a76ee242eef75d30ccd.zip
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
-rw-r--r--gnu/packages/python-science.scm57
1 files changed, 32 insertions, 25 deletions
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index c7ae7d14a1..291c4e03ce 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -2734,35 +2734,42 @@ necessary for reproducing the experiments in the paper.")
(define-public python-einops
(package
(name "python-einops")
- (version "0.6.1")
- (source (origin
- (method git-fetch) ;PyPI misses .ipynb files required for tests
- (uri (git-reference
- (url "https://github.com/arogozhnikov/einops")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "1h8p39kd7ylg99mh620xr20hg7v78x1jnj6vxwk31rlw2dmv2dpr"))))
+ (version "0.8.1")
+ (source
+ (origin
+ (method git-fetch) ;PyPI misses .ipynb files required for tests
+ (uri (git-reference
+ (url "https://github.com/arogozhnikov/einops")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "07xd5a4sya3mr003f17hxykcbq3zf3mnr51qagv7fy55qcnbkn97"))))
(build-system pyproject-build-system)
(arguments
- (list #:phases #~(modify-phases %standard-phases
- (add-after 'unpack 'set-backend
- (lambda _
- ;; Einops supports different backends, but we test
- ;; only NumPy for availability and simplicity.
- (setenv "EINOPS_TEST_BACKENDS" "numpy"))))))
- (native-inputs (list jupyter
- python-hatchling
- python-nbconvert
- python-nbformat
- python-parameterized
- python-pytest))
- (propagated-inputs (list python-numpy))
+ (list
+ #:test-flags
+ ;; Skip optional dependency on Jupyter during tests.
+ #~(list "--ignore=scripts/test_notebooks.py")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'set-backend
+ (lambda _
+ ;; Einops supports different backends, but we test
+ ;; only NumPy for availability and simplicity.
+ (setenv "EINOPS_TEST_BACKENDS" "numpy"))))))
+ (native-inputs
+ (list python-hatchling
+ python-nbconvert
+ python-nbformat
+ python-parameterized
+ python-pytest))
+ (propagated-inputs
+ (list python-numpy))
(home-page "https://einops.rocks/")
(synopsis "Tensor operations for different backends")
- (description "Einops provides a set of tensor operations for NumPy and
-multiple deep learning frameworks.")
+ (description
+ "Einops provides a set of tensor operations for NumPy and multiple deep
+learning frameworks.")
(license license:expat)))
(define-public python-xarray