python3Packages.lightgbm: use finalAttrs

This commit is contained in:
Florian Klink
2026-04-09 23:47:47 +01:00
parent d31f834be0
commit 2fa06e7751
@@ -42,7 +42,7 @@
assert gpuSupport -> !cudaSupport;
assert cudaSupport -> !gpuSupport;
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
inherit (pkgs.lightgbm)
pname
version
@@ -51,7 +51,7 @@ buildPythonPackage rec {
pyproject = true;
src = fetchPypi {
inherit pname version;
inherit (finalAttrs) pname version;
hash = "sha256-yxxZcg61aTicC6dNFPUjUbVzr0ifIwAyocnzFPi6t/4=";
};
@@ -123,11 +123,11 @@ buildPythonPackage rec {
meta = {
description = "Fast, distributed, high performance gradient boosting (GBDT, GBRT, GBM or MART) framework";
homepage = "https://github.com/lightgbm-org/LightGBM";
changelog = "https://github.com/lightgbm-org/LightGBM/releases/tag/v${version}";
changelog = "https://github.com/lightgbm-org/LightGBM/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
flokli
teh
];
};
}
})