mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
gnu: python-scikit-learn: Update to 0.18.1.
* gnu/packages/python.scm (python-scikit-learn): Update to 0.18.1. [arguments]: Remove special "check" phase. [native-inputs]: Add python-cython.
This commit is contained in:
parent
8bf4a6aecd
commit
8e401ab6db
1 changed files with 5 additions and 14 deletions
|
@ -2960,7 +2960,7 @@ (define-public pelican
|
||||||
(define-public python-scikit-learn
|
(define-public python-scikit-learn
|
||||||
(package
|
(package
|
||||||
(name "python-scikit-learn")
|
(name "python-scikit-learn")
|
||||||
(version "0.16.1")
|
(version "0.18.1")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
|
@ -2970,7 +2970,7 @@ (define-public python-scikit-learn
|
||||||
(file-name (string-append name "-" version ".tar.gz"))
|
(file-name (string-append name "-" version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"140skabifgc7lvvj873pnzlwx0ni6q8qkrsyad2ccjb3h8rxzkih"))))
|
"1hwswckdmd27f7k1jvwdc0m4mqrgxl2s245yq1scq34v124bjqgq"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
|
@ -2978,21 +2978,12 @@ (define-public python-scikit-learn
|
||||||
'check 'set-HOME
|
'check 'set-HOME
|
||||||
;; some tests require access to "$HOME"
|
;; some tests require access to "$HOME"
|
||||||
(lambda _ (setenv "HOME" "/tmp"))
|
(lambda _ (setenv "HOME" "/tmp"))
|
||||||
;; Tests can only be run after the library has been installed and not
|
%standard-phases)))
|
||||||
;; within the source directory.
|
|
||||||
(alist-cons-after
|
|
||||||
'install 'check
|
|
||||||
(lambda _
|
|
||||||
(with-directory-excursion "/tmp"
|
|
||||||
;; With Python 3 one test of 3334 fails
|
|
||||||
;; (sklearn.tests.test_common.test_transformers); see
|
|
||||||
;; https://github.com/scikit-learn/scikit-learn/issues/3693
|
|
||||||
(system* "nosetests" "-v" "sklearn")))
|
|
||||||
(alist-delete 'check %standard-phases)))))
|
|
||||||
(inputs
|
(inputs
|
||||||
`(("openblas" ,openblas)))
|
`(("openblas" ,openblas)))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-nose" ,python-nose)))
|
`(("python-nose" ,python-nose)
|
||||||
|
("python-cython" ,python-cython)))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("python-numpy" ,python-numpy)
|
`(("python-numpy" ,python-numpy)
|
||||||
("python-scipy" ,python-scipy)))
|
("python-scipy" ,python-scipy)))
|
||||||
|
|
Loading…
Reference in a new issue