gnu: python-pynndescent: Update to 0.5.11.

* gnu/packages/machine-learning.scm (python-pynndescent): Update to 0.5.11.
[build-system]: Use pyproject-build-system.
[arguments]: Remove.
[propagated-inputs]: Add python-importlib-metadata.

Change-Id: I14f15ea98157ed15b360971c30fe00c5f00af4a7
This commit is contained in:
Ricardo Wurmus 2024-01-08 15:28:10 +01:00
parent 247c427302
commit ca1749c243
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -1824,27 +1824,18 @@ (define-public python-imbalanced-learn
(define-public python-pynndescent (define-public python-pynndescent
(package (package
(name "python-pynndescent") (name "python-pynndescent")
(version "0.5.10") (version "0.5.11")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "pynndescent" version)) (uri (pypi-uri "pynndescent" version))
(sha256 (sha256
(base32 "1bc8aa6jfw28y6sb0nvfdrfgh66a42bqb4znvpimzx9yq21wcpax")))) (base32 "0l5dpdsk5vg7rpay81bncp04119hnl5z7zxjv63jrnm9spcwwi3g"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
(when tests?
(invoke "python" "-m" "pytest" "--pyargs" "pynndescent"
;; wminkowski no longer exists in scipy 1.8.0 (see:
;; https://github.com/lmcinnes/pynndescent/issues/177)
"-k" "not test_weighted_minkowski")))))))
(native-inputs (list python-pytest)) (native-inputs (list python-pytest))
(propagated-inputs (propagated-inputs
(list python-joblib (list python-importlib-metadata
python-joblib
python-llvmlite python-llvmlite
python-numba python-numba
python-scikit-learn python-scikit-learn