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
This commit is contained in:
Vinicius Monego 2025-12-23 23:53:36 -03:00
parent 28d2071f71
commit 46c10b5d30
No known key found for this signature in database
GPG key ID: 637B0B138065B68A

View file

@ -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")