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 \ # in \
# rWrapper.override{ packages = [ xgb ]; }" # rWrapper.override{ packages = [ xgb ]; }"
pname = lib.optionalString rLibrary "r-" + pnameBase; pname = lib.optionalString rLibrary "r-" + pnameBase;
version = "1.7.6"; version = "2.0.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "dmlc"; owner = "dmlc";
repo = pnameBase; repo = pnameBase;
rev = "v${version}"; rev = "v${version}";
fetchSubmodules = true; fetchSubmodules = true;
hash = "sha256-i7smd56rLbNY0qXysq818VYWYbjrnFbyIjQkIgf9aOs="; hash = "sha256-HKITioCvBZHZWKFWwe9KbrFP+Nbz8adbZJvQiqApjUQ=";
}; };
nativeBuildInputs = [ cmake ] nativeBuildInputs = [ cmake ]
@ -144,6 +144,7 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/dmlc/xgboost"; homepage = "https://github.com/dmlc/xgboost";
license = licenses.asl20; license = licenses.asl20;
platforms = platforms.unix; platforms = platforms.unix;
broken = stdenv.isDarwin;
maintainers = with maintainers; [ abbradar nviets ]; maintainers = with maintainers; [ abbradar nviets ];
}; };
} }

View file

@ -4,17 +4,19 @@
, cmake , cmake
, numpy , numpy
, scipy , scipy
, hatchling
, stdenv , stdenv
, xgboost , xgboost
}: }:
buildPythonPackage { buildPythonPackage {
pname = "xgboost"; pname = "xgboost";
format = "pyproject";
inherit (xgboost) version src meta; inherit (xgboost) version src meta;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake hatchling ];
buildInputs = [ xgboost ]; buildInputs = [ xgboost ];
propagatedBuildInputs = [ numpy scipy ]; propagatedBuildInputs = [ numpy scipy ];