python3Packages.pwlf: use finalAttrs pattern
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user