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 @@ main intended application of Autograd is gradient-based optimization.")
|
||||||
(name "lightgbm")
|
(name "lightgbm")
|
||||||
(version "2.0.12")
|
(version "2.0.12")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method git-fetch)
|
||||||
(uri (string-append
|
(uri (git-reference
|
||||||
"https://github.com/Microsoft/LightGBM/archive/v"
|
(url "https://github.com/Microsoft/LightGBM")
|
||||||
version ".tar.gz"))
|
(commit (string-append "v" version))))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"132zf0yk0545mg72hyzxm102g3hpb6ixx9hnf8zd2k55gas6cjj1"))
|
"0jlvyn7k81dzrh9ij3zw576wbgiwmmr26rzpdxjn1dbpc3njpvzi"))
|
||||||
(file-name (string-append name "-" version ".tar.gz"))))
|
(file-name (git-file-name name version))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-pytest" ,python-pytest)
|
`(("python-pytest" ,python-pytest)
|
||||||
("python-nose" ,python-nose)))
|
("python-nose" ,python-nose)))
|
||||||
|
@ -968,8 +968,8 @@ main intended application of Autograd is gradient-based optimization.")
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda _
|
||||||
(with-directory-excursion ,(string-append "../LightGBM-" version)
|
(with-directory-excursion "../source"
|
||||||
(invoke "pytest" "tests/c_api_test/test_.py")))))))
|
(invoke "pytest" "tests/c_api_test/test_.py")))))))
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
(home-page "https://github.com/Microsoft/LightGBM")
|
(home-page "https://github.com/Microsoft/LightGBM")
|
||||||
|
|
Reference in a new issue