python3Packages.lightgbm: use cmakeFlags directly

Possible using scikit-build-core's setup hook.

Changed files
+4 -3
pkgs
development
python-modules
lightgbm
+4 -3
pkgs/development/python-modules/lightgbm/default.nix
···
scipy
];
-
pypaBuildFlags =
-
lib.optionals gpuSupport [ "--config-setting=cmake.define.USE_GPU=ON" ]
-
++ lib.optionals cudaSupport [ "--config-setting=cmake.define.USE_CUDA=ON" ];
optional-dependencies = {
arrow = [
···
scipy
];
+
cmakeFlags = [
+
(lib.cmakeBool "USE_GPU" gpuSupport)
+
(lib.cmakeBool "USE_CUDA" cudaSupport)
+
];
optional-dependencies = {
arrow = [