Merge pull request #118842 from superherointj/package-linode-cli-5.0.1

linode-cli: 2.15.0 -> 5.0.1
This commit is contained in:
Ryan Mulligan 2021-04-09 21:06:53 -07:00 committed by GitHub
commit 7c6aa8400b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,6 @@
{ lib { lib
, buildPythonApplication , buildPythonApplication
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, fetchurl , fetchurl
, terminaltables , terminaltables
, colorclass , colorclass
@ -13,31 +12,23 @@
let let
spec = fetchurl { spec = fetchurl {
url = "https://raw.githubusercontent.com/linode/linode-api-docs/v4.67.0/openapi.yaml"; url = "https://raw.githubusercontent.com/linode/linode-api-docs/v4.89.0/openapi.yaml";
sha256 = "0vsblprkqlr9508x5rkm0wj6lc3w72xiwiqxia9asgr5k45hhfnr"; sha256 = "sha256-R7Dmq8ifGEjh47ftuoGrbymYBsPCj/ULz0j1OqJDcwY=";
}; };
in in
buildPythonApplication rec { buildPythonApplication rec {
pname = "linode-cli"; pname = "linode-cli";
version = "2.15.0"; version = "5.0.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "linode"; owner = "linode";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "06iz9xjj6h1ry176558488fl9j18a5vf724zh4cxlcksdy72dnna"; sha256 = "sha256-zelopRaHaDCnbYA/y7dNMBh70g0+wuc6t9LH/VLaUIk=";
}; };
patches = [
# make enum34 depend on python version
( fetchpatch {
url = "https://github.com/linode/linode-cli/pull/184/commits/4cf55759c5da33fbc49b9ba664698875d67d4f76.patch";
sha256 = "04n9a6yh0abyyymvfzajhav6qxwvzjl2vs8jnqp3yqrma7kl0slj";
})
];
# remove need for git history # remove need for git history
prePatch = '' prePatch = ''
substituteInPlace setup.py \ substituteInPlace setup.py \