oci-cli: 3.14.0 -> 3.51.8

https://github.com/oracle/oci-cli/releases/tag/v3.51.8
This commit is contained in:
Adam C. Stephens
2025-02-21 23:29:15 -05:00
parent e77888cca5
commit 12261bc8d5
+7 -18
View File
@@ -1,27 +1,15 @@
{ {
lib, lib,
fetchFromGitHub, fetchFromGitHub,
fetchPypi,
python3, python3,
installShellFiles, installShellFiles,
nix-update-script,
}: }:
let let
py = python3.override { py = python3.override {
self = py; self = py;
packageOverrides = self: super: { packageOverrides = self: super: {
click = super.click.overridePythonAttrs (oldAttrs: rec {
version = "7.1.2";
src = fetchPypi {
pname = "click";
inherit version;
hash = "sha256-0rUlXHxjSbwb0eWeCM0SrLvWPOZJ8liHVXg6qU37axo=";
};
disabledTests = [ "test_bytes_args" ]; # https://github.com/pallets/click/commit/6e05e1fa1c2804
});
jmespath = super.jmespath.overridePythonAttrs (oldAttrs: rec { jmespath = super.jmespath.overridePythonAttrs (oldAttrs: rec {
version = "0.10.0"; version = "0.10.0";
src = oldAttrs.src.override { src = oldAttrs.src.override {
@@ -31,21 +19,20 @@ let
}; };
doCheck = false; doCheck = false;
}); });
}; };
}; };
in in
py.pkgs.buildPythonApplication rec { py.pkgs.buildPythonApplication rec {
pname = "oci-cli"; pname = "oci-cli";
version = "3.14.0"; version = "3.51.8";
format = "setuptools"; format = "setuptools";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "oracle"; owner = "oracle";
repo = pname; repo = pname;
rev = "v${version}"; tag = "v${version}";
hash = "sha256-yooEZuSIw2EMJVyT/Z/x4hJi8a1F674CtsMMGkMAYLg="; hash = "sha256-p+X6kJDjuDaOLgZ9KwrZJgAqORKLxPrXwQ4X+JZb1W4=";
}; };
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles ];
@@ -97,9 +84,11 @@ py.pkgs.buildPythonApplication rec {
doCheck = true; doCheck = true;
pythonImportsCheck = [ pythonImportsCheck = [
" oci_cli " "oci_cli"
]; ];
passthru.updateScript = nix-update-script { };
meta = with lib; { meta = with lib; {
description = "Command Line Interface for Oracle Cloud Infrastructure"; description = "Command Line Interface for Oracle Cloud Infrastructure";
homepage = "https://docs.cloud.oracle.com/iaas/Content/API/Concepts/cliconcepts.htm"; homepage = "https://docs.cloud.oracle.com/iaas/Content/API/Concepts/cliconcepts.htm";