[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/13: gnu: lightgbm: Don't use unstable tarball.
From: |
guix-commits |
Subject: |
11/13: gnu: lightgbm: Don't use unstable tarball. |
Date: |
Tue, 23 Jun 2020 10:14:01 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit a2a7cc9bfc4a51a2dde2ea821ed00d88ea5d3976
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Jun 23 17:02:04 2020 +0300
gnu: lightgbm: Don't use unstable tarball.
* gnu/packages/machine-learning.scm (lightgbm)[source]: Download using
git-fetch.
[arguments]: Adjust custom 'check phase accordingly.
---
gnu/packages/machine-learning.scm | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/machine-learning.scm
b/gnu/packages/machine-learning.scm
index cc69aa3..0c02fbc 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -946,14 +946,14 @@ main intended application of Autograd is gradient-based
optimization.")
(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 @@ main intended application of Autograd is gradient-based
optimization.")
#: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")
- branch master updated (1ed87c0 -> 6562a38), guix-commits, 2020/06/23
- 01/13: gnu: java-picocli: Use a source file-name., guix-commits, 2020/06/23
- 03/13: gnu: libfreenect: Add a source file-name., guix-commits, 2020/06/23
- 02/13: gnu: xaos: Add a source file-name., guix-commits, 2020/06/23
- 05/13: gnu: miniasm: Don't use unstable tarball., guix-commits, 2020/06/23
- 04/13: gnu: stumpwm-contrib: Add a source file-name., guix-commits, 2020/06/23
- 11/13: gnu: lightgbm: Don't use unstable tarball.,
guix-commits <=
- 06/13: gnu: miniasm: Make sure all phases return #t., guix-commits, 2020/06/23
- 07/13: gnu: fntsample: Don't use unstable tarball., guix-commits, 2020/06/23
- 08/13: gnu: nototools: Don't use unstable tarball., guix-commits, 2020/06/23
- 09/13: gnu: sbcl-md5: Don't use unstable tarball., guix-commits, 2020/06/23
- 10/13: gnu: sonata: Don't use unstable tarball., guix-commits, 2020/06/23
- 12/13: gnu: nzbget: Don't use unstable tarball., guix-commits, 2020/06/23
- 13/13: gnu: pidentd: Don't use unstable tarball., guix-commits, 2020/06/23