diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-11-24 16:50:09 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-01 23:23:52 +0000 |
| commit | 82f644f60d6df6c4d14219eaa6b9b3258c4245e3 (patch) | |
| tree | 8048de4fe08f111a94bf725cb4b67c3ee5f139e7 /gnu | |
| parent | 2a47999c84762cc2656737b50fc36245695b35a9 (diff) | |
gnu: lightgbm: Switch to pyproject.
* gnu/packages/machine-learning.scm (lightgbm):
[build-system]: Switch to pyproject-build-system.
[arguments]: Improve style and refresh <#:phases>.
[native-inputs]: Add python. Remove python-nose.
[description]: Improve style.
Change-Id: I0d1e2560573a412814d303d65c33b30a545f9416
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/machine-learning.scm | 57 |
1 files changed, 29 insertions, 28 deletions
diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index eb85215b4fa..b154ebaa2ba 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -2658,36 +2658,36 @@ adjoint method for constant memory cost.") (package (name "lightgbm") (version "2.0.12") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/Microsoft/LightGBM") - (commit (string-append "v" version)))) - (sha256 - (base32 - "0jlvyn7k81dzrh9ij3zw576wbgiwmmr26rzpdxjn1dbpc3njpvzi")) - (file-name (git-file-name name version)))) - (native-inputs - (list python-pytest python-nose)) - (inputs - (list openmpi)) - (propagated-inputs - (list python-numpy python-scipy)) - (arguments - `(#:configure-flags - '("-DUSE_MPI=ON") - #:phases - (modify-phases %standard-phases - (replace 'check - (lambda _ - (with-directory-excursion "../source" - (invoke "pytest" "tests/c_api_test/test_.py"))))))) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Microsoft/LightGBM") + (commit (string-append "v" version)))) + (sha256 + (base32 "0jlvyn7k81dzrh9ij3zw576wbgiwmmr26rzpdxjn1dbpc3njpvzi")) + (file-name (git-file-name name version)))) (build-system cmake-build-system) + (arguments + (list + #:configure-flags + #~(list "-DUSE_MPI=ON") + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (with-directory-excursion "../source" + (invoke "pytest" "tests/c_api_test/test_.py")))))))) + (native-inputs (list python python-pytest)) + (inputs (list openmpi)) + (propagated-inputs (list python-numpy python-scipy)) (home-page "https://github.com/Microsoft/LightGBM") (synopsis "Gradient boosting framework based on decision tree algorithms") - (description "LightGBM is a gradient boosting framework that uses tree -based learning algorithms. It is designed to be distributed and efficient with -the following advantages: + (description + "LightGBM is a gradient boosting framework that uses tree based learning +algorithms. It is designed to be distributed and efficient with the following +advantages: @itemize @item Faster training speed and higher efficiency @@ -2695,7 +2695,8 @@ the following advantages: @item Better accuracy @item Parallel and GPU learning supported (not enabled in this package) @item Capable of handling large-scale data -@end itemize\n") +@end itemize +") (license license:expat))) (define-public vowpal-wabbit |
