4 , buildPythonApplication
14 sha256 = "0lngwmb9j3nzwhkhq4r9sy82gwjry14lvjjgm8vfivbbakjdl7xp";
15 # specVersion taken from: https://www.linode.com/docs/api/openapi.yaml at `info.version`.
16 specVersion = "4.139.0";
17 specSha256 = "1z050vm049gb8vynp34iz9jpxwbpmbf5vbs1jsirwqbfhr1skslz";
19 url = "https://raw.githubusercontent.com/linode/linode-api-docs/v${specVersion}/openapi.yaml";
25 buildPythonApplication rec {
29 src = fetchFromGitHub {
37 ./remove-update-check.patch
40 # remove need for git history
42 substituteInPlace setup.py \
43 --replace "version=get_version()," "version='${version}',"
46 propagatedBuildInputs = [
55 python3 -m linodecli bake ${spec} --skip-config
59 doInstallCheck = true;
60 installCheckPhase = ''
61 $out/bin/linode-cli --skip-config --version | grep ${version} > /dev/null
64 nativeBuildInputs = [ installShellFiles ];
66 installShellCompletion --cmd linode-cli --bash <($out/bin/linode-cli --skip-config completion bash)
69 passthru.updateScript = ./update.sh;
72 description = "The Linode Command Line Interface";
73 homepage = "https://github.com/linode/linode-cli";
74 license = licenses.bsd3;
75 maintainers = with maintainers; [ ryantm ];