python3Packages.pwlf: use finalAttrs pattern

This commit is contained in:
Doron Behar
2026-06-29 10:33:49 +03:00
parent 6109e565e2
commit 2bee88c4fb
@@ -9,7 +9,7 @@
unittestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "pwlf";
version = "2.5.2";
pyproject = true;
@@ -17,7 +17,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "cjekel";
repo = "piecewise_linear_fit_py";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-gN4AOmtezJ1310TVcKLsJ6rOtv0rGkQ6LjVluIeYEGQ=";
};
@@ -38,8 +38,8 @@ buildPythonPackage rec {
meta = {
description = "Fit piecewise linear data for a specified number of line segments";
homepage = "https://jekel.me/piecewise_linear_fit_py/";
changelog = "https://github.com/cjekel/piecewise_linear_fit_py/blob/${src.rev}/CHANGELOG.md";
changelog = "https://github.com/cjekel/piecewise_linear_fit_py/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ doronbehar ];
};
}
})