summaryrefslogtreecommitdiff
path: root/gnu/packages/machine-learning.scm
diff options
context:
space:
mode:
authorAyan Das <bvits@riseup.net>2025-10-27 02:47:08 +0530
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-11-04 12:12:57 +0000
commite00a3fb9d6dc50f9cb445a652afa943aef8b7e7e (patch)
tree4b1e5bb2114e6369ef4e4c15bd75ab925b004a1e /gnu/packages/machine-learning.scm
parent52dfc46279956f0307d9cf7ef8827fc7a9a2b473 (diff)
gnu: python-pot: Update to 0.9.6.
* gnu/packages/machine-learning.scm (python-pot): Update to 0.9.6. [source]: Switch to git-fetch (upstream tag). Update hash. Remove snippet for deleting 'ot/lp/emd_wrap.cpp'—not present in VCS source. [arguments]: Add test-flags to skip 'test_entropic_semirelaxed_gromov' (TypeError). [native-inputs]: Drop python-wheel; add python-pytest and python-pytest-cov. Change-Id: I8932a58ad9b83fd9c82c21fbb7db23fb06336a64 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/machine-learning.scm')
-rw-r--r--gnu/packages/machine-learning.scm25
1 files changed, 18 insertions, 7 deletions
diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index 80fb8506f7c..3f22b364071 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -1207,15 +1207,25 @@ It currently houses implementations of
(define-public python-pot
(package
(name "python-pot")
- (version "0.9.5")
+ (version "0.9.6")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "pot" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/PythonOT/POT")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32 "0hk0dmjgnpwka0a7gyzrcq155wzlvzcrsav3qaizyg0wymzywi4n"))
- (snippet '(delete-file "ot/lp/emd_wrap.cpp"))))
+ (base32 "1zzh6jsnagsmcmf91hhb0f1asnby11h2zc92h7myld4wik986bx7"))))
(build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ #~(list "-k"
+ ;; Semirelaxed GW init partitions by size via np.where(shapes <= N);
+ ;; dtype mix triggers str vs int TypeError under our NumPy.
+ "not test_entropic_semirelaxed_gromov"
+ "test")))
(propagated-inputs
(list python-autograd
python-numpy
@@ -1225,8 +1235,9 @@ It currently houses implementations of
python-scikit-learn
python-scipy))
(native-inputs (list python-cython
- python-setuptools
- python-wheel))
+ python-pytest
+ python-pytest-cov
+ python-setuptools))
(home-page "https://github.com/PythonOT/POT")
(synopsis "Python Optimal Transport Library")
(description "This Python library provides several solvers for