[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
14/59: gnu: python-scikit-learn: Update to 1.3.2.
From: |
guix-commits |
Subject: |
14/59: gnu: python-scikit-learn: Update to 1.3.2. |
Date: |
Tue, 16 Jan 2024 05:24:27 -0500 (EST) |
rekado pushed a commit to branch wip-python-science
in repository guix.
commit 5c62a437e68cd8f2e30528a942595c0a5bba18b2
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Mon Jan 8 13:19:26 2024 +0100
gnu: python-scikit-learn: Update to 1.3.2.
* gnu/packages/machine-learning.scm (python-scikit-learn): Update to 1.3.2.
[build-system]: Use pyproject-build-system.
[arguments]: Move test flags to #:test-flags.
[native-inputs]: Replace python-cython with python-cython-0.29.35.
Change-Id: Iac6107dae752c42d9f57448a66eed0526974d57e
---
gnu/packages/machine-learning.scm | 28 +++++++++++++++-------------
1 file changed, 15 insertions(+), 13 deletions(-)
diff --git a/gnu/packages/machine-learning.scm
b/gnu/packages/machine-learning.scm
index 9e65084f34..af55a99152 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -1613,7 +1613,7 @@ computing environments.")
(define-public python-scikit-learn
(package
(name "python-scikit-learn")
- (version "1.2.2")
+ (version "1.3.2")
(source
(origin
(method git-fetch)
@@ -1623,20 +1623,25 @@ computing environments.")
(file-name (git-file-name name version))
(sha256
(base32
- "0x7gfzvcdadf8jnvpz8m373bi37bc6sndfbjh9lzmn3p39pwm2hl"))))
- (build-system python-build-system)
+ "1hr024vcilbjwlwn32ppadri0ypnzjmkfxhkkw8gih0qjvcvjbs7"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
+ (list
+ #:test-flags
+ '(list "-m" "not network"
+ ;; This test tries to access the internet.
+ "-k" "not test_load_boston_alternative")
+ #:phases
+ '(modify-phases %standard-phases
(add-before 'build 'configure
(lambda _
(setenv "SKLEARN_BUILD_PARALLEL"
(number->string (parallel-job-count)))))
(add-after 'build 'build-ext
(lambda _ (invoke "python" "setup.py" "build_ext" "--inplace"
- "-j" (number->string (parallel-job-count)))))
+ "-j" (number->string (parallel-job-count)))))
(replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
+ (lambda* (#:key tests? test-flags #:allow-other-keys)
(when tests?
;; Restrict OpenBLAS threads to prevent segfaults while testing!
(setenv "OPENBLAS_NUM_THREADS" "1")
@@ -1647,14 +1652,11 @@ computing environments.")
;; Step out of the source directory to avoid interference;
;; we want to run the installed code with extensions etc.
(with-directory-excursion "/tmp"
- (invoke "pytest" "-vv" "--pyargs" "sklearn"
- "-m" "not network"
- "-n" (number->string (parallel-job-count))
- ;; This test tries to access the internet.
- "-k" "not test_load_boston_alternative"))))))))
+ (apply invoke "pytest" "--pyargs" "sklearn"
+ test-flags))))))))
(inputs (list openblas))
(native-inputs
- (list python-cython
+ (list python-cython-0.29.35
python-pandas
python-pytest
python-pytest-xdist))
- 07/59: gnu: python-scipy: Update to 1.11.4., (continued)
- 07/59: gnu: python-scipy: Update to 1.11.4., guix-commits, 2024/01/16
- 02/59: gnu: Add pybind11-2.10., guix-commits, 2024/01/16
- 05/59: gnu: Add python-pydevtool., guix-commits, 2024/01/16
- 03/59: gnu: python-doit: Update to 0.36.0., guix-commits, 2024/01/16
- 12/59: gnu: python-pypng: Update to 0.20220715.0., guix-commits, 2024/01/16
- 18/59: gnu: python-kiwisolver: Update to 1.4.5., guix-commits, 2024/01/16
- 13/59: gnu: python-matplotx: Disable test_png test., guix-commits, 2024/01/16
- 17/59: gnu: Add python-cppy., guix-commits, 2024/01/16
- 15/59: gnu: python-pynndescent: Update to 0.5.11., guix-commits, 2024/01/16
- 10/59: gnu: python-imageio: Update to 2.33.1., guix-commits, 2024/01/16
- 14/59: gnu: python-scikit-learn: Update to 1.3.2.,
guix-commits <=
- 16/59: gnu: python-umap-learn: Update to 0.5.5., guix-commits, 2024/01/16
- 11/59: gnu: python-scikit-image: Update to 0.22.0., guix-commits, 2024/01/16
- 26/59: gnu: python-captum: Update to 0.7.0., guix-commits, 2024/01/16
- 25/59: gnu: python-poliastro: Make compatible with latest matplotlib., guix-commits, 2024/01/16
- 27/59: gnu: tadbit: Add missing input., guix-commits, 2024/01/16
- 21/59: gnu: python-seaborn: Update to 0.13.1., guix-commits, 2024/01/16
- 45/59: gnu: datasette: Update to 1.0a7., guix-commits, 2024/01/16
- 57/59: gnu: python-clingraph: Update to 1.1.2., guix-commits, 2024/01/16
- 56/59: gnu: python-astroml: Make compatible with recent Matplot and Scipy., guix-commits, 2024/01/16
- 47/59: gnu: python-pandas: Update to 1.5.3., guix-commits, 2024/01/16