~ruther/guix-local

46c10b5d30a4fc87653bf8edd80e14a8f72415b1 — Vinicius Monego 2 months ago 28d2071
gnu: python-cma: Update to 4.4.1.

* gnu/packages/machine-learning.scm (python-cma): Update to 4.4.1.
[arguments]: Add '#:test-backend', '#:test-flags'.
<#:phases>: Do not override the 'check' phase.

Change-Id: I277fe650c6906323ca0dee820355faee72a4ab40
1 files changed, 4 insertions(+), 7 deletions(-)

M gnu/packages/machine-learning.scm
M gnu/packages/machine-learning.scm => gnu/packages/machine-learning.scm +4 -7
@@ 2543,20 2543,17 @@ data by providing clean labels during training.")
(define-public python-cma
  (package
    (name "python-cma")
    (version "4.2.0")
    (version "4.4.1")
    (source (origin
              (method url-fetch)
              (uri (pypi-uri "cma" version))
              (sha256
               (base32
                "17wv4r80av3cpr3dqad7jf7bwnjahk4bgagqlkqxjp8zfmg60s0q"))))
                "1n17shbcmy7h7k105ar9yhj2zmgykx1wv9fhwd5kbwrcypa221mz"))))
    (build-system pyproject-build-system)
    (arguments
     (list #:phases #~(modify-phases %standard-phases
                        (replace 'check
                          (lambda* (#:key tests? #:allow-other-keys)
                            (when tests?
                              (invoke "python" "-m" "cma.test")))))))
     (list #:test-backend #~'custom
           #:test-flags #~'("cma/test.py")))
    (native-inputs (list python-pytest python-setuptools))
    (propagated-inputs (list python-numpy))
    (home-page "https://github.com/CMA-ES/pycma")