Merge pull request #127967 from superherointj/package-linode-cli-5.4.3
linode-cli: 5.0.1 -> 5.4.3
This commit is contained in:
commit
e686e7fb23
1 changed files with 13 additions and 14 deletions
|
@ -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 ];
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue