mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: python-scikit-learn-extra: Update to 0.3.0-1.0f95d8d.
* gnu/packages/machine-learning.scm (python-scikit-learn-extra): Update to 0.3.0-1.0f95d8d. [arguments]: Move test flags out of 'check phase and to #:test-flags. [propagated-inputs]: Add python-packaging. Change-Id: I4081a9364a0646d0c6960a3d155315e8eff8af59
This commit is contained in:
parent
90f9528748
commit
6a22f65d66
1 changed files with 50 additions and 41 deletions
|
@ -1673,52 +1673,61 @@ (define-public python-scikit-learn
|
||||||
(license license:bsd-3)))
|
(license license:bsd-3)))
|
||||||
|
|
||||||
(define-public python-scikit-learn-extra
|
(define-public python-scikit-learn-extra
|
||||||
(package
|
;; This commit fixes an incompatibility with newer versions of scikit-learn
|
||||||
(name "python-scikit-learn-extra")
|
(let ((commit "0f95d8dda4c69f9de4fb002366041adcb1302f3b")
|
||||||
(version "0.3.0")
|
(revision "1"))
|
||||||
(source
|
(package
|
||||||
(origin
|
(name "python-scikit-learn-extra")
|
||||||
(method git-fetch)
|
(version (git-version "0.3.0" revision commit))
|
||||||
(uri (git-reference
|
(source
|
||||||
(url "https://github.com/scikit-learn-contrib/scikit-learn-extra")
|
(origin
|
||||||
(commit (string-append "v" version))))
|
(method git-fetch)
|
||||||
(file-name (git-file-name name version))
|
(uri (git-reference
|
||||||
(sha256
|
(url "https://github.com/scikit-learn-contrib/scikit-learn-extra")
|
||||||
(base32 "0yy6ka94ss88f3r7b6mpjf1l8lnv7aabhsg844pigfj8lfiv0wvl"))))
|
(commit commit)))
|
||||||
(build-system pyproject-build-system)
|
(file-name (git-file-name name version))
|
||||||
(arguments
|
(sha256
|
||||||
(list #:phases
|
(base32 "0a248sff1psfwzmngj465gzyisq20d83nzpwpq2cspxhih51m6j9"))))
|
||||||
#~(modify-phases %standard-phases
|
(build-system pyproject-build-system)
|
||||||
(add-after 'build 'build-ext
|
(arguments
|
||||||
(lambda _
|
(list
|
||||||
(invoke "python" "setup.py" "build_ext"
|
#:test-flags
|
||||||
"--inplace")))
|
;; ignore tests that require network
|
||||||
(replace 'check
|
'(list "--pyargs" "sklearn_extra"
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
"-k" "not test_build")
|
||||||
(when tests?
|
#:phases
|
||||||
;; Restrict OpenBLAS threads to prevent segfaults while testing!
|
#~(modify-phases %standard-phases
|
||||||
(setenv "OPENBLAS_NUM_THREADS" "1")
|
(add-after 'build 'build-ext
|
||||||
|
(lambda _
|
||||||
|
(invoke "python" "setup.py" "build_ext"
|
||||||
|
"--inplace")))
|
||||||
|
(replace 'check
|
||||||
|
(lambda* (#:key tests? test-flags #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
|
;; Restrict OpenBLAS threads to prevent segfaults while testing!
|
||||||
|
(setenv "OPENBLAS_NUM_THREADS" "1")
|
||||||
|
|
||||||
;; Some tests require write access to $HOME.
|
;; Some tests require write access to $HOME.
|
||||||
(setenv "HOME" "/tmp")
|
(setenv "HOME" "/tmp")
|
||||||
|
|
||||||
;; Step out of the source directory to avoid interference;
|
;; Step out of the source directory to avoid interference;
|
||||||
;; we want to run the installed code with extensions etc.
|
;; we want to run the installed code with extensions etc.
|
||||||
(with-directory-excursion "/tmp"
|
(with-directory-excursion "/tmp"
|
||||||
(invoke "pytest" "-vv" "--pyargs"
|
(apply invoke "pytest" "-vv" test-flags))))))))
|
||||||
"sklearn_extra"
|
(propagated-inputs
|
||||||
;; ignore tests that require network
|
(list python-numpy
|
||||||
"-k" "not test_build"))))))))
|
python-scikit-learn
|
||||||
(propagated-inputs (list python-numpy python-scikit-learn python-scipy))
|
python-scipy
|
||||||
(native-inputs (list python-pytest python-pytest-cov python-cython))
|
python-packaging))
|
||||||
(home-page "https://github.com/scikit-learn-contrib/scikit-learn-extra")
|
(native-inputs (list python-pytest python-pytest-cov python-cython))
|
||||||
(synopsis "Set of tools for scikit-learn")
|
(home-page "https://github.com/scikit-learn-contrib/scikit-learn-extra")
|
||||||
(description
|
(synopsis "Set of tools for scikit-learn")
|
||||||
"This package provides a Python module for machine learning that extends
|
(description
|
||||||
|
"This package provides a Python module for machine learning that extends
|
||||||
scikit-learn. It includes algorithms that are useful but do not satisfy the
|
scikit-learn. It includes algorithms that are useful but do not satisfy the
|
||||||
scikit-learn inclusion criteria, for instance due to their novelty or lower
|
scikit-learn inclusion criteria, for instance due to their novelty or lower
|
||||||
citation number.")
|
citation number.")
|
||||||
(license license:bsd-3)))
|
(license license:bsd-3))))
|
||||||
|
|
||||||
(define-public python-thinc
|
(define-public python-thinc
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Reference in a new issue