Commit f7c05d86 authored by superherointj's avatar superherointj
Browse files
parent 694f2edc
Loading
Loading
Loading
Loading
+18 −16
Original line number Diff line number Diff line
{ lib
, fetchFromGitHub
, fetchurl
, buildPythonApplication
{ buildPythonApplication
, colorclass
, fetchPypi
, fetchurl
, installShellFiles
, lib
, linode-metadata
, openapi3
, packaging
, pyyaml
, requests
, rich
, setuptools
, terminaltables
, rich
, openapi3
, packaging
}:

let
  hash = "sha256-J0L+FTVzYuAqTDOwpoH12lQr03UNo5dsQpd/iUKR40Q=";
  hash = "sha256-IXltDBgabTBDw0y7IXgRGpAWVUyqeJI8EfxkZ5YuQrU=";
  # specVersion taken from: https://www.linode.com/docs/api/openapi.yaml at `info.version`.
  specVersion = "4.166.0";
  specHash = "sha256-rUwKQt3y/ALZUoW3eJiiIDJYLQpUHO7Abm0h09ra02g=";
  specVersion = "4.176.0";
  specHash = "sha256-P1E8Ga5ckrsw/CX0kxFef5fe8/p/pDCLuleX9wR5l48=";
  spec = fetchurl {
    url = "https://raw.githubusercontent.com/linode/linode-api-docs/v${specVersion}/openapi.yaml";
    hash = specHash;
@@ -27,14 +28,13 @@ in

buildPythonApplication rec {
  pname = "linode-cli";
  version = "5.45.0";
  version = "5.50.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "linode";
    repo = pname;
    rev = "v${version}";
    inherit hash;
  src = fetchPypi {
    pname = "linode_cli";
    inherit version;
    hash = "sha256-OCnO7Bf2tDnC4g7kYS0WFlV9plAS25GbzRO6mpDYYxk=";
  };

  patches = [
@@ -57,6 +57,7 @@ buildPythonApplication rec {

  propagatedBuildInputs = [
    colorclass
    linode-metadata
    pyyaml
    requests
    setuptools
@@ -83,6 +84,7 @@ buildPythonApplication rec {
  meta = {
    description = "Linode Command Line Interface";
    changelog = "https://github.com/linode/linode-cli/releases/tag/v${version}";
    downloadPage = "https://pypi.org/project/linode-cli";
    homepage = "https://github.com/linode/linode-cli";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ ryantm techknowlogick ];