mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
python310Packages.lightgbm: add changelog to meta
This commit is contained in:
parent
c287407e07
commit
a9842234c8
@ -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 ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user