diff --git a/pkgs/development/python-modules/frigidaire/default.nix b/pkgs/development/python-modules/frigidaire/default.nix index 5db312881681..1b0403ec49ba 100644 --- a/pkgs/development/python-modules/frigidaire/default.nix +++ b/pkgs/development/python-modules/frigidaire/default.nix @@ -10,7 +10,7 @@ urllib3, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "frigidaire"; version = "0.18.29"; pyproject = true; @@ -18,13 +18,13 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "bm1549"; repo = "frigidaire"; - tag = version; + tag = finalAttrs.version; hash = "sha256-OVaXo1UFB0deCHfDXR+uUnIsPsW6RhE/OJLG1WD4Ykg="; }; postPatch = '' substituteInPlace setup.py \ - --replace-warn 'version = "SNAPSHOT"' 'version = "${version}"' + --replace-warn 'version = "SNAPSHOT"' 'version = "${finalAttrs.version}"' ''; nativeBuildInputs = [ setuptools ]; @@ -45,8 +45,8 @@ buildPythonPackage rec { meta = { description = "Python API for the Frigidaire devices"; homepage = "https://github.com/bm1549/frigidaire"; - changelog = "https://github.com/bm1549/frigidaire/releases/tag/${src.tag}"; + changelog = "https://github.com/bm1549/frigidaire/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; -} +})