gnu: python-scikit-learn: Update to 1.0.1.

* gnu/packages/machine-learning.scm (python-scikit-learn): Update to 1.0.1.
[arguments]: Disable one failing network test.
This commit is contained in:
Ricardo Wurmus 2021-11-20 15:36:29 +01:00
parent 3d56b8af90
commit b182e13638
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -926,7 +926,7 @@ (define-public dlib
(define-public python-scikit-learn (define-public python-scikit-learn
(package (package
(name "python-scikit-learn") (name "python-scikit-learn")
(version "0.24.2") (version "1.0.1")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
@ -936,7 +936,7 @@ (define-public python-scikit-learn
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"0hm92biqwwc87bqnr56lwa5bz77lr7k9q21rdwksnfzq3vsdp2nm")))) "07k92y78sk4074vh5hp8y63pwl592wgl8azrfp0q84chxk8igfx9"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(#:phases `(#:phases
@ -952,7 +952,9 @@ (define-public python-scikit-learn
;; Some tests require write access to $HOME. ;; Some tests require write access to $HOME.
(setenv "HOME" "/tmp") (setenv "HOME" "/tmp")
(invoke "pytest" "sklearn" "-m" "not network")))) (invoke "pytest" "sklearn" "-m" "not network"
;; This test tries to access the internet.
"-k" "not test_load_boston_alternative"))))
(add-before 'reset-gzip-timestamps 'make-files-writable (add-before 'reset-gzip-timestamps 'make-files-writable
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
;; Make sure .gz files are writable so that the ;; Make sure .gz files are writable so that the