xgboost: 1.7.6 -> 2.0.0

This commit is contained in:
nviets 2023-09-14 00:06:47 -05:00
parent 4c160598a8
commit a926139186
2 changed files with 6 additions and 3 deletions

View file

@ -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 ];
};
}

View file

@ -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 ];