diff --git a/pkgs/by-name/re/redfishtool/package.nix b/pkgs/by-name/re/redfishtool/package.nix index 029617a616a9..1f1874c4f81c 100644 --- a/pkgs/by-name/re/redfishtool/package.nix +++ b/pkgs/by-name/re/redfishtool/package.nix @@ -4,16 +4,13 @@ python3, }: -let +python3.pkgs.buildPythonApplication (finalAttrs: { pname = "redfishtool"; version = "1.1.8"; -in -python3.pkgs.buildPythonApplication { - inherit pname version; pyproject = true; src = fetchPypi { - inherit pname version; + inherit (finalAttrs) pname version; hash = "sha256-X/G6osOHCBidKZG/Y2nmHadifDacJhjBIc7WYrUCPn8="; }; @@ -29,9 +26,9 @@ python3.pkgs.buildPythonApplication { meta = { description = "Python34 program that implements a command line tool for accessing the Redfish API"; homepage = "https://github.com/DMTF/Redfishtool"; - changelog = "https://github.com/DMTF/Redfishtool/blob/${version}/CHANGELOG.md"; + changelog = "https://github.com/DMTF/Redfishtool/blob/${finalAttrs.version}/CHANGELOG.md"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ jfvillablanca ]; mainProgram = "redfishtool"; }; -} +})