mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
gnu: lightgbm: Don't use unstable tarball.
* gnu/packages/machine-learning.scm (lightgbm)[source]: Download using git-fetch. [arguments]: Adjust custom 'check phase accordingly.
This commit is contained in:
parent
92ecee94dd
commit
a2a7cc9bfc
1 changed files with 8 additions and 8 deletions
|
@ -946,14 +946,14 @@ (define-public lightgbm
|
|||
(name "lightgbm")
|
||||
(version "2.0.12")
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (string-append
|
||||
"https://github.com/Microsoft/LightGBM/archive/v"
|
||||
version ".tar.gz"))
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/Microsoft/LightGBM")
|
||||
(commit (string-append "v" version))))
|
||||
(sha256
|
||||
(base32
|
||||
"132zf0yk0545mg72hyzxm102g3hpb6ixx9hnf8zd2k55gas6cjj1"))
|
||||
(file-name (string-append name "-" version ".tar.gz"))))
|
||||
"0jlvyn7k81dzrh9ij3zw576wbgiwmmr26rzpdxjn1dbpc3njpvzi"))
|
||||
(file-name (git-file-name name version))))
|
||||
(native-inputs
|
||||
`(("python-pytest" ,python-pytest)
|
||||
("python-nose" ,python-nose)))
|
||||
|
@ -968,8 +968,8 @@ (define-public lightgbm
|
|||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(replace 'check
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(with-directory-excursion ,(string-append "../LightGBM-" version)
|
||||
(lambda _
|
||||
(with-directory-excursion "../source"
|
||||
(invoke "pytest" "tests/c_api_test/test_.py")))))))
|
||||
(build-system cmake-build-system)
|
||||
(home-page "https://github.com/Microsoft/LightGBM")
|
||||
|
|
Loading…
Reference in a new issue