fork
Configure Feed
Select the types of activity you want to include in your feed.
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{ lib, fetchFromGitHub, python3Packages, locale }:
2
3let
4 # https://github.com/oracle/oci-cli/issues/189
5 pinned_click = python3Packages.click.overridePythonAttrs (old: rec {
6 pname = "click";
7 version = "6.7";
8 src = python3Packages.fetchPypi {
9 inherit pname version;
10 hash = "sha256-8VUW30eNWlYYD7+A5o8gYBDm0WD8OfpQi2XgNf11Ews=";
11 };
12
13 postPatch = ''
14 substituteInPlace click/_unicodefun.py \
15 --replace "'locale'" "'${locale}/bin/locale'"
16 '';
17
18 # Issue that wasn't resolved when this version was released:
19 # https://github.com/pallets/click/issues/823
20 doCheck = false;
21 });
22in
23
24python3Packages.buildPythonApplication rec {
25 pname = "oci-cli";
26 version = "2.23.0";
27
28 src = fetchFromGitHub {
29 owner = "oracle";
30 repo = "oci-cli";
31 rev = "v${version}";
32 hash = "sha256-XRkycJrUSOZQAGiSyQZGA/SnlxnFumYL82kOkYd7s2o=";
33 };
34
35 propagatedBuildInputs = with python3Packages; [
36 oci arrow certifi pinned_click configparser cryptography jmespath dateutil
37 pytz retrying six terminaltables pyopenssl pyyaml
38 ];
39
40 # https://github.com/oracle/oci-cli/issues/187
41 doCheck = false;
42
43 postPatch = ''
44 substituteInPlace setup.py \
45 --replace "configparser==4.0.2" "configparser" \
46 --replace "cryptography==3.2.1" "cryptography" \
47 --replace "pyOpenSSL==19.1.0" "pyOpenSSL" \
48 --replace "PyYAML==5.3.1" "PyYAML" \
49 --replace "six==1.14.0" "six" \
50 --replace "arrow==0.17.0" "arrow"
51 '';
52
53 meta = with lib; {
54 description = "Command Line Interface for Oracle Cloud Infrastructure";
55 homepage = "https://docs.cloud.oracle.com/iaas/Content/API/Concepts/cliconcepts.htm";
56 maintainers = with maintainers; [ ilian ];
57 license = with licenses; [ asl20 upl ];
58 };
59}