python310Packages.lightgbm: add changelog to meta

This commit is contained in:
Fabian Affolter 2023-01-25 09:29:39 +01:00 committed by GitHub
parent c287407e07
commit a9842234c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,5 @@
{ lib, stdenv
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, cmake
@ -6,15 +7,19 @@
, scipy
, scikit-learn
, llvmPackages ? null
, pythonOlder
}:
buildPythonPackage rec {
pname = "lightgbm";
version = "3.3.5";
format = "other";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-ELj73PhR5PaKHwLzjZm9xEx8f7mxpi3PkkoNKf9zOVw=";
hash = "sha256-ELj73PhR5PaKHwLzjZm9xEx8f7mxpi3PkkoNKf9zOVw=";
};
nativeBuildInputs = [
@ -23,7 +28,10 @@ buildPythonPackage rec {
dontUseCmakeConfigure = true;
buildInputs = lib.optionals stdenv.cc.isClang [ llvmPackages.openmp ];
buildInputs = lib.optionals stdenv.cc.isClang [
llvmPackages.openmp
];
propagatedBuildInputs = [
numpy
scipy
@ -38,11 +46,15 @@ buildPythonPackage rec {
# repository. It contains c++ tests which don't seem to wired up to
# `make check`.
doCheck = false;
pythonImportsCheck = [ "lightgbm" ];
pythonImportsCheck = [
"lightgbm"
];
meta = with lib; {
description = "A fast, distributed, high performance gradient boosting (GBDT, GBRT, GBM or MART) framework";
homepage = "https://github.com/Microsoft/LightGBM";
changelog = "https://github.com/microsoft/LightGBM/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ teh costrouc ];
};