summary refs log tree commit diff
diff options
context:
space:
mode:
authorVinicius Monego <monego@posteo.net>2022-01-14 20:09:21 +0000
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2022-01-14 21:29:58 +0100
commit0848b5595c0cd21069bb87596ca72299164e6e66 (patch)
treea8722d46108d8f0415477a602f9de02c3846dca9
parent8fdd984f9ce44a16a25792573bf6ba19711f5609 (diff)
downloadguix-0848b5595c0cd21069bb87596ca72299164e6e66.tar.gz
gnu: python-pynndescent: Update to 0.5.5.
* gnu/packages/machine-learning.scm (python-pynndescent): Update to 0.5.5.
[arguments]<#:phases>: Override 'check phase.
[native-inputs]: Remove python-nose. Add python-pytest.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
-rw-r--r--gnu/packages/machine-learning.scm14
1 files changed, 11 insertions, 3 deletions
diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index 9de0d49e60..56dcc9baf2 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -1210,16 +1210,24 @@ for scientific computing and data science (e.g. BLAS and OpenMP).")
 (define-public python-pynndescent
   (package
     (name "python-pynndescent")
-    (version "0.5.2")
+    (version "0.5.5")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "pynndescent" version))
        (sha256
-        (base32 "0w87c2v0li2rdbx6qfc2lb6y6bxpdy3jwfgzfs1kcr4d1chj5zfr"))))
+        (base32 "10pqqqc3jkpw03cyzy04slxmpgyhqnlgbyk0c1cv7kqr5d0zhzbs"))))
     (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+             (when tests?
+               (add-installed-pythonpath inputs outputs)
+               (invoke "python" "-m" "pytest" "--pyargs" "pynndescent")))))))
     (native-inputs
-     (list python-nose))
+     (list python-pytest))
     (propagated-inputs
      (list python-joblib python-llvmlite python-numba python-scikit-learn
            python-scipy))