7 py = python3.override {
8 packageOverrides = self: super: {
10 click = super.click.overridePythonAttrs (oldAttrs: rec {
13 src = oldAttrs.src.override {
15 hash = "sha256-0rUlXHxjSbwb0eWeCM0SrLvWPOZJ8liHVXg6qU37axo=";
20 jmespath = super.jmespath.overridePythonAttrs (oldAttrs: rec {
22 src = oldAttrs.src.override {
24 sha256 = "b85d0567b8666149a93172712e68920734333c0ce7e89b78b3e987f71e5ed4f9";
35 buildPythonApplication rec {
38 format = "setuptools";
40 src = fetchFromGitHub {
44 hash = "sha256-yooEZuSIw2EMJVyT/Z/x4hJi8a1F674CtsMMGkMAYLg=";
47 propagatedBuildInputs = [
65 substituteInPlace setup.py \
66 --replace "cryptography>=3.2.1,<=37.0.2" "cryptography" \
67 --replace "pyOpenSSL>=17.5.0,<=22.0.0" "pyOpenSSL" \
68 --replace "PyYAML>=5.4,<6" "PyYAML" \
69 --replace "prompt-toolkit==3.0.29" "prompt-toolkit" \
70 --replace "terminaltables==3.1.0" "terminaltables" \
71 --replace "oci==2.78.0" "oci"
74 # https://github.com/oracle/oci-cli/issues/187
77 pythonImportsCheck = [
82 description = "Command Line Interface for Oracle Cloud Infrastructure";
83 homepage = "https://docs.cloud.oracle.com/iaas/Content/API/Concepts/cliconcepts.htm";
84 license = with licenses; [ asl20 /* or */ upl ];
85 maintainers = with maintainers; [ ilian ];