diff --git a/pkgs/tools/virtualization/linode-cli/default.nix b/pkgs/tools/virtualization/linode-cli/default.nix index 155daf41a7f2..b30c4b88651c 100644 --- a/pkgs/tools/virtualization/linode-cli/default.nix +++ b/pkgs/tools/virtualization/linode-cli/default.nix @@ -1,33 +1,33 @@ { lib -, buildPythonApplication , fetchFromGitHub , fetchurl -, terminaltables +, buildPythonApplication , colorclass -, requests -, pyyaml -, setuptools , installShellFiles +, pyyaml +, requests +, setuptools +, terminaltables }: let - + specVersion = "4.96.0"; # Version taken from: https://www.linode.com/docs/api/openapi.yaml at `info.version`. spec = fetchurl { - url = "https://raw.githubusercontent.com/linode/linode-api-docs/v4.89.0/openapi.yaml"; - sha256 = "sha256-R7Dmq8ifGEjh47ftuoGrbymYBsPCj/ULz0j1OqJDcwY="; + url = "https://raw.githubusercontent.com/linode/linode-api-docs/v${specVersion}/openapi.yaml"; + sha256 = "sha256-4+j5BBTOFLLiA+n0YEUH/ICK4Iuxr6nNB7ZRrYACW2I="; }; in buildPythonApplication rec { pname = "linode-cli"; - version = "5.0.1"; + version = "5.4.3"; src = fetchFromGitHub { owner = "linode"; repo = pname; rev = version; - sha256 = "sha256-zelopRaHaDCnbYA/y7dNMBh70g0+wuc6t9LH/VLaUIk="; + sha256 = "sha256-hljvcYtck89Lzje0XgnvYqh+jebOEOFnOkgEnGZJm0o="; }; # remove need for git history @@ -37,11 +37,11 @@ buildPythonApplication rec { ''; propagatedBuildInputs = [ - terminaltables colorclass - requests pyyaml + requests setuptools + terminaltables ]; postConfigure = '' @@ -60,10 +60,9 @@ buildPythonApplication rec { ''; meta = with lib; { - homepage = "https://github.com/linode/linode-cli"; description = "The Linode Command Line Interface"; + homepage = "https://github.com/linode/linode-cli"; license = licenses.bsd3; maintainers = with maintainers; [ ryantm superherointj ]; }; - }