diff --git a/pkgs/development/python-modules/pyotgw/default.nix b/pkgs/development/python-modules/pyotgw/default.nix index 5debbfdbc3db..876644f8719b 100644 --- a/pkgs/development/python-modules/pyotgw/default.nix +++ b/pkgs/development/python-modules/pyotgw/default.nix @@ -8,7 +8,7 @@ setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "pyotgw"; version = "2.2.3"; pyproject = true; @@ -16,7 +16,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "mvn23"; repo = "pyotgw"; - tag = version; + tag = finalAttrs.version; hash = "sha256-0F+UBIPk+A9z0YJtLVlJAqzMre8GZAio720SCi2dorE="; }; @@ -39,8 +39,8 @@ buildPythonPackage rec { meta = { description = "Python module to interact the OpenTherm Gateway"; homepage = "https://github.com/mvn23/pyotgw"; - changelog = "https://github.com/mvn23/pyotgw/blob/${version}/CHANGELOG.md"; - license = with lib.licenses; [ gpl3Plus ]; + changelog = "https://github.com/mvn23/pyotgw/blob/${finalAttrs.src.tag}/CHANGELOG.md"; + license = lib.licenses.gpl3Plus; maintainers = with lib.maintainers; [ fab ]; }; -} +})