btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / az / azure-cli / extensions-manual.nix
blob758f8c4de86ff7b28f9cf47f9d882ac95ed4163c
1 # Manually packaged extensions for azure-cli
3 # Checkout ./README.md for more information.
6   config,
7   lib,
8   mkAzExtension,
9   mycli,
10   python3Packages,
11   autoPatchelfHook,
12   python3,
13   openssl_1_1,
17   application-insights = mkAzExtension rec {
18     pname = "application-insights";
19     version = "1.2.1";
20     url = "https://azcliprod.blob.core.windows.net/cli-extensions/application_insights-${version}-py2.py3-none-any.whl";
21     hash = "sha256-4fqCTrWH4r7H9MtNHEzhAzqz0/rGWvQt1iGPZzsBnO4=";
22     description = "Support for managing Application Insights components and querying metrics, events, and logs from such components";
23     propagatedBuildInputs = with python3Packages; [ isodate ];
24     meta.maintainers = with lib.maintainers; [ andreasvoss ];
25   };
27   azure-devops = mkAzExtension rec {
28     pname = "azure-devops";
29     version = "1.0.1";
30     url = "https://github.com/Azure/azure-devops-cli-extension/releases/download/20240206.1/azure_devops-${version}-py2.py3-none-any.whl";
31     hash = "sha256-ZYooVNjID4dPk4LUIfpFq/ajjQAzRzfdoAb43sZM9wo=";
32     description = "Tools for managing Azure DevOps";
33     propagatedBuildInputs = with python3Packages; [ distro ];
34     meta.maintainers = with lib.maintainers; [ katexochen ];
35   };
37   azure-iot = mkAzExtension rec {
38     pname = "azure-iot";
39     description = "The Azure IoT extension for Azure CLI.";
40     version = "0.25.0";
41     url = "https://github.com/Azure/azure-iot-cli-extension/releases/download/v${version}/azure_iot-${version}-py3-none-any.whl";
42     hash = "sha256-fbS8B2Z++oRyUT2eEh+yVR/K6uaCVce8B2itQXfBscY=";
43     propagatedBuildInputs = (
44       with python3Packages;
45       [
46         azure-core
47         azure-identity
48         azure-iot-device
49         azure-mgmt-core
50         azure-storage-blob
51         jsonschema
52         msrest
53         msrestazure
54         packaging
55         tomli
56         tomli-w
57         tqdm
58         treelib
59       ]
60     );
61     meta.maintainers = with lib.maintainers; [ mikut ];
62   };
64   confcom = mkAzExtension rec {
65     pname = "confcom";
66     version = "1.0.0";
67     url = "https://azcliprod.blob.core.windows.net/cli-extensions/confcom-${version}-py3-none-any.whl";
68     hash = "sha256-c4I+EJWKEUtKyoTDMLTevMZQxGNedMVoZ5tsMsNWQR0=";
69     description = "Microsoft Azure Command-Line Tools Confidential Container Security Policy Generator Extension";
70     nativeBuildInputs = [ autoPatchelfHook ];
71     buildInputs = [ openssl_1_1 ];
72     propagatedBuildInputs = with python3Packages; [
73       pyyaml
74       deepdiff
75       docker
76       tqdm
77     ];
78     postInstall = ''
79       chmod +x $out/${python3.sitePackages}/azext_confcom/bin/genpolicy-linux
80     '';
81     meta.maintainers = with lib.maintainers; [ miampf ];
82   };
84   containerapp = mkAzExtension rec {
85     pname = "containerapp";
86     version = "1.0.0b1";
87     url = "https://azcliprod.blob.core.windows.net/cli-extensions/containerapp-${version}-py2.py3-none-any.whl";
88     hash = "sha256-2AuDsOIncJJcJLyhUMhBgjdrewr/m28oSY12nchhi0U=";
89     description = "Microsoft Azure Command-Line Tools Containerapp Extension";
90     propagatedBuildInputs = with python3Packages; [
91       docker
92       pycomposefile
93     ];
94     meta.maintainers = with lib.maintainers; [ giggio ];
95   };
97   rdbms-connect = mkAzExtension rec {
98     pname = "rdbms-connect";
99     version = "1.0.6";
100     url = "https://azcliprod.blob.core.windows.net/cli-extensions/rdbms_connect-${version}-py2.py3-none-any.whl";
101     hash = "sha256-Scvo2bfqB6iXSimtkCR+hk7XmL7V8o0OOleks39ZOec=";
102     description = "Support for testing connection to Azure Database for MySQL & PostgreSQL servers";
103     propagatedBuildInputs =
104       (with python3Packages; [
105         pgcli
106         psycopg2
107         pymysql
108         setproctitle
109       ])
110       ++ [ mycli ];
111     meta.maintainers = with lib.maintainers; [ obreitwi ];
112   };
114   ssh = mkAzExtension rec {
115     pname = "ssh";
116     version = "2.0.5";
117     url = "https://azcliprod.blob.core.windows.net/cli-extensions/ssh-${version}-py3-none-any.whl";
118     hash = "sha256-gMmLENe/HOQAW3aUrt0FxHNVRWd1umElMIvmX7D+/JM=";
119     description = "SSH into Azure VMs using RBAC and AAD OpenSSH Certificates";
120     propagatedBuildInputs = with python3Packages; [
121       oras
122       oschmod
123     ];
124     meta.maintainers = with lib.maintainers; [ gordon-bp ];
125   };
127   storage-preview = mkAzExtension rec {
128     pname = "storage-preview";
129     version = "1.0.0b2";
130     url = "https://azcliprod.blob.core.windows.net/cli-extensions/storage_preview-${version}-py2.py3-none-any.whl";
131     hash = "sha256-Lej6QhYikoowi7cASMP99AQAutOzSv1gHQs6/Ni4J2Q=";
132     description = "Provides a preview for upcoming storage features";
133     propagatedBuildInputs = with python3Packages; [ azure-core ];
134     meta.maintainers = with lib.maintainers; [ katexochen ];
135   };
137   vm-repair = mkAzExtension rec {
138     pname = "vm-repair";
139     version = "2.0.0";
140     url = "https://azcliprod.blob.core.windows.net/cli-extensions/vm_repair-${version}-py2.py3-none-any.whl";
141     hash = "sha256-mBa0SgKyGdxrTtrSVDp78Z0yXUMywL/9o0osKeUbhdU=";
142     description = "Support for repairing Azure Virtual Machines";
143     propagatedBuildInputs = with python3Packages; [ opencensus ];
144     meta.maintainers = with lib.maintainers; [ ];
145   };
147 // lib.optionalAttrs config.allowAliases {
148   # Removed extensions
149   adp = throw "The 'adp' extension for azure-cli was deprecated upstream"; # Added 2024-11-02, https://github.com/Azure/azure-cli-extensions/pull/8038
150   blockchain = throw "The 'blockchain' extension for azure-cli was deprecated upstream"; # Added 2024-04-26, https://github.com/Azure/azure-cli-extensions/pull/7370
151   connection-monitor-preview = throw "The 'connection-monitor-preview' extension for azure-cli was deprecated upstream"; # Added 2024-11-02, https://github.com/Azure/azure-cli-extensions/pull/8194