diff --git a/pkgs/development/python-modules/pyvicare/default.nix b/pkgs/development/python-modules/pyvicare/default.nix index e4de2f5e5fb9..1072a8f0ae76 100644 --- a/pkgs/development/python-modules/pyvicare/default.nix +++ b/pkgs/development/python-modules/pyvicare/default.nix @@ -10,7 +10,7 @@ pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "pyvicare"; version = "2.56.0"; pyproject = true; @@ -18,13 +18,13 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "openviess"; repo = "PyViCare"; - tag = version; + tag = finalAttrs.version; hash = "sha256-DRCetTR7sFaShau3in0548FoR+rOaG28SGqfAjAVsn4="; }; postPatch = '' substituteInPlace pyproject.toml \ - --replace-fail 'version = "0.1.0"' 'version = "${version}"' + --replace-fail 'version = "0.1.0"' 'version = "${finalAttrs.version}"' ''; build-system = [ poetry-core ]; @@ -43,10 +43,10 @@ buildPythonPackage rec { pythonImportsCheck = [ "PyViCare" ]; meta = { - changelog = "https://github.com/openviess/PyViCare/releases/tag/${src.tag}"; description = "Python Library to access Viessmann ViCare API"; homepage = "https://github.com/somm15/PyViCare"; - license = with lib.licenses; [ asl20 ]; + changelog = "https://github.com/openviess/PyViCare/releases/tag/${finalAttrs.version}"; + license = lib.licenses.asl20; maintainers = with lib.maintainers; [ fab ]; }; -} +})