[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
15/47: gnu: python-scikit-learn: Update to 1.3.2.
From: |
guix-commits |
Subject: |
15/47: gnu: python-scikit-learn: Update to 1.3.2. |
Date: |
Wed, 10 Jan 2024 13:53:21 -0500 (EST) |
rekado pushed a commit to branch wip-python-science
in repository guix.
commit 9dc3cab2e431196ee23c279907a937ee547a29dc
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 1616738399..d8a9f4d13a 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))
- 16/47: gnu: python-pynndescent: Update to 0.5.11., (continued)
- 16/47: gnu: python-pynndescent: Update to 0.5.11., guix-commits, 2024/01/10
- 38/47: gnu: scvelo: Make compatible with latest matplotlib., guix-commits, 2024/01/10
- 19/47: gnu: python-kiwisolver: Update to 1.4.5., guix-commits, 2024/01/10
- 44/47: gnu: python-metpy: Update to 1.6.0., guix-commits, 2024/01/10
- 31/47: gnu: python-reportlab: Update to 4.0.8., guix-commits, 2024/01/10
- 25/47: gnu: python-cleanlab: Disable test_aux_inputs, enable other tests., guix-commits, 2024/01/10
- 02/47: gnu: Add pybind11-2.10., guix-commits, 2024/01/10
- 09/47: gnu: python-lazy-loader: Update to 0.3., guix-commits, 2024/01/10
- 12/47: gnu: python-afdko: Disable failing test., guix-commits, 2024/01/10
- 18/47: gnu: Add python-cppy., guix-commits, 2024/01/10
- 15/47: gnu: python-scikit-learn: Update to 1.3.2.,
guix-commits <=
- 35/47: gnu: python-pint: Update to 0.23., guix-commits, 2024/01/10
- 32/47: gnu: cnvkit: Update to 0.9.10., guix-commits, 2024/01/10
- 41/47: gnu: python-hicmatrix: Update to 17.1., guix-commits, 2024/01/10
- 37/47: gnu: python-cartopy: Update to 0.22.0., guix-commits, 2024/01/10
- 29/47: gnu: python-pyani: Disable tests., guix-commits, 2024/01/10
- 33/47: gnu: python-plastid: Update to 0.6.1., guix-commits, 2024/01/10
- 21/47: gnu: python-matplotlib: Update to 3.8.2., guix-commits, 2024/01/10
- 39/47: gnu: python-fit-nbinom: Disable tests., guix-commits, 2024/01/10
- 47/47: gnu: python-click-default-group: Update to 1.2.4., guix-commits, 2024/01/10
- 07/47: gnu: python-scipy: Update to 1.11.4., guix-commits, 2024/01/10