Merge pull request #255061 from nviets/xgboost200
xgboost: 1.7.6 -> 2.0.0
This commit is contained in:
commit
b58b0b0311
|
@ -45,14 +45,14 @@ stdenv.mkDerivation rec {
|
|||
# in \
|
||||
# rWrapper.override{ packages = [ xgb ]; }"
|
||||
pname = lib.optionalString rLibrary "r-" + pnameBase;
|
||||
version = "1.7.6";
|
||||
version = "2.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dmlc";
|
||||
repo = pnameBase;
|
||||
rev = "v${version}";
|
||||
fetchSubmodules = true;
|
||||
hash = "sha256-i7smd56rLbNY0qXysq818VYWYbjrnFbyIjQkIgf9aOs=";
|
||||
hash = "sha256-HKITioCvBZHZWKFWwe9KbrFP+Nbz8adbZJvQiqApjUQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ]
|
||||
|
@ -144,6 +144,7 @@ stdenv.mkDerivation rec {
|
|||
homepage = "https://github.com/dmlc/xgboost";
|
||||
license = licenses.asl20;
|
||||
platforms = platforms.unix;
|
||||
broken = stdenv.isDarwin;
|
||||
maintainers = with maintainers; [ abbradar nviets ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -4,17 +4,19 @@
|
|||
, cmake
|
||||
, numpy
|
||||
, scipy
|
||||
, hatchling
|
||||
, stdenv
|
||||
, xgboost
|
||||
}:
|
||||
|
||||
buildPythonPackage {
|
||||
pname = "xgboost";
|
||||
format = "pyproject";
|
||||
inherit (xgboost) version src meta;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
nativeBuildInputs = [ cmake hatchling ];
|
||||
buildInputs = [ xgboost ];
|
||||
propagatedBuildInputs = [ numpy scipy ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue