15 inherit (xgboost) version src meta;
17 disabled = pythonOlder "3.8";
23 buildInputs = [ xgboost ];
24 propagatedBuildInputs = [
29 # Override existing logic for locating libxgboost.so which is not appropriate for Nix
32 libPath = "${xgboost}/lib/libxgboost${stdenv.hostPlatform.extensions.sharedLibrary}";
35 echo 'find_lib_path = lambda: ["${libPath}"]' > python-package/xgboost/libpath.py
38 dontUseCmakeConfigure = true;
44 # test setup tries to download test data with no option to disable
45 # (removing sklearn from nativeCheckInputs causes all previously enabled tests to be skipped)
46 # and are extremely cpu intensive anyway
49 pythonImportsCheck = [ "xgboost" ];
51 __darwinAllowLocalNetworking = true;