~ruther/guix-local

e00a3fb9d6dc50f9cb445a652afa943aef8b7e7e — Ayan Das 5 months ago 52dfc46
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>
1 files changed, 18 insertions(+), 7 deletions(-)

M gnu/packages/machine-learning.scm
M gnu/packages/machine-learning.scm => gnu/packages/machine-learning.scm +18 -7
@@ 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