[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
16/55: gnu: python-umap-learn: Update to 0.5.5.
From: |
guix-commits |
Subject: |
16/55: gnu: python-umap-learn: Update to 0.5.5. |
Date: |
Mon, 15 Jan 2024 07:42:21 -0500 (EST) |
rekado pushed a commit to branch wip-python-science
in repository guix.
commit 40a8d6246e2028580ce267b0b73c3480c17cb87a
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Mon Jan 8 16:22:52 2024 +0100
gnu: python-umap-learn: Update to 0.5.5.
* gnu/packages/machine-learning.scm (python-umap-learn): Update to 0.5.5.
[build-system]: Use pyproject-build-system.
[arguments]: Remove 'numpy-compatibility and custom 'check phases.
Change-Id: I2123f66519730d43e454d9536e8cb7b6c4569d56
---
gnu/packages/machine-learning.scm | 30 +++++-------------------------
1 file changed, 5 insertions(+), 25 deletions(-)
diff --git a/gnu/packages/machine-learning.scm
b/gnu/packages/machine-learning.scm
index f34e6dd5a4..2ae97505fb 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -3854,46 +3854,26 @@ methodxs at scale on CPU or GPU.")
(define-public python-umap-learn
(package
(name "python-umap-learn")
- (version "0.5.3")
+ (version "0.5.5")
(source
(origin
(method git-fetch) ;no tests in pypi release
(uri (git-reference
(url "https://github.com/lmcinnes/umap")
- (commit version)))
+ (commit (string-append "release-" version))))
(file-name (git-file-name name version))
(sha256
(base32
- "1315jkb0h1b579y9m59632f0nnpksilm01nxx46in0rq8zna8vsb"))))
- (build-system python-build-system)
+ "0ijyiaqycynwj1383cxp519c765gjbg1f6fjwbvqj1gims710w3d"))))
+ (build-system pyproject-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
- (add-after 'unpack 'numpy-compatibility
- (lambda _
- (substitute* "umap/tests/test_umap_metrics.py"
- ;; See commit a714b59bd9e2ca2e63312bc3491b2b037a42f2f2
- (("sparse_binary_data.todense\\(\\),")
- "np.asarray(sparse_binary_data.todense()),")
- ;; See commit c7d05683325589ad432a55e109cacb9d631cfaa9
- (("sparse_spatial_data.todense\\(\\),")
- "np.asarray(sparse_spatial_data.todense()),"))
- ;; See commit 949abd082524fce8c45dfb147bcd8e8ef49eade3
- (substitute* "umap/tests/test_umap_ops.py"
- (("np.random,") "None,"))))
;; Numba needs a writable dir to cache functions.
(add-before 'check 'set-numba-cache-dir
(lambda _
- (setenv "NUMBA_CACHE_DIR" "/tmp")))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (setenv "HOME" "/tmp")
- (invoke "pytest" "-vv" "umap"
- ;; This test can fail because trust may only be
- ;; 0.9679405204460967 >= 0.97
- "-k" "not
test_densmap_trustworthiness_on_iris_supervised")))))))
+ (setenv "NUMBA_CACHE_DIR" "/tmp"))))))
(native-inputs (list python-pytest))
(propagated-inputs
(list python-numba
- 03/55: gnu: python-doit: Update to 0.36.0., (continued)
- 03/55: gnu: python-doit: Update to 0.36.0., guix-commits, 2024/01/15
- 01/55: gnu: Add python-cython-0.29.35., guix-commits, 2024/01/15
- 05/55: gnu: Add python-pydevtool., guix-commits, 2024/01/15
- 06/55: gnu: meson-python: Update to 0.15.0., guix-commits, 2024/01/15
- 10/55: gnu: python-imageio: Update to 2.33.1., guix-commits, 2024/01/15
- 14/55: gnu: python-scikit-learn: Update to 1.3.2., guix-commits, 2024/01/15
- 17/55: gnu: Add python-cppy., guix-commits, 2024/01/15
- 20/55: gnu: python-matplotlib: Update to 3.8.2., guix-commits, 2024/01/15
- 21/55: gnu: python-seaborn: Update to 0.13.1., guix-commits, 2024/01/15
- 13/55: gnu: python-matplotx: Disable test_png test., guix-commits, 2024/01/15
- 16/55: gnu: python-umap-learn: Update to 0.5.5.,
guix-commits <=
- 22/55: gnu: Add python-pytest-nunit., guix-commits, 2024/01/15
- 23/55: gnu: python-scanpy: Update to 1.9.6., guix-commits, 2024/01/15
- 28/55: gnu: python-pyani: Disable tests., guix-commits, 2024/01/15
- 25/55: gnu: python-poliastro: Make compatible with latest matplotlib., guix-commits, 2024/01/15
- 29/55: gnu: python-pegasusio: Disable tests., guix-commits, 2024/01/15
- 30/55: gnu: python-reportlab: Update to 4.0.8., guix-commits, 2024/01/15
- 32/55: gnu: python-plastid: Update to 0.6.1., guix-commits, 2024/01/15
- 35/55: gnu: python-demuxem: Disable tests., guix-commits, 2024/01/15
- 38/55: gnu: python-fit-nbinom: Disable tests., guix-commits, 2024/01/15
- 36/55: gnu: python-cartopy: Update to 0.22.0., guix-commits, 2024/01/15