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:
Sandro 2021-06-24 11:47:38 +02:00 committed by GitHub
commit e686e7fb23
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 ];
};
}