aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/azure-cli-extension
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/azure-cli-extension')
-rw-r--r--pkgs/development/python-modules/azure-cli-extension/default.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/azure-cli-extension/default.nix b/pkgs/development/python-modules/azure-cli-extension/default.nix
new file mode 100644
index 0000000..9e398a8
--- /dev/null
+++ b/pkgs/development/python-modules/azure-cli-extension/default.nix
@@ -0,0 +1,44 @@
+{ stdenv, buildPythonPackage, fetchPypi, python
+, azure-cli-command-modules-nspkg
+, azure-cli-core
+, pip
+, wheel
+}:
+
+buildPythonPackage rec {
+ pname = "azure-cli-extension";
+ version = "0.2.1";
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "06nygms3prjc3b5k07qkymplamva8bqalshp06f3g8a610adhwq2";
+ };
+
+ # Hackily force build w/ wheel 0.31
+ postPatch = ''
+ sed -e '/azure-namespace-package/d' -i setup.cfg
+ sed -e 's/wheel==0.30.0/wheel/' -i setup.py azure_cli_extension.egg-info/requires.txt
+ '';
+
+ postFixup = ''
+ rm "$out/lib/${python.libPrefix}/site-packages/azure/__init__.py"
+ rm "$out/lib/${python.libPrefix}/site-packages/azure/cli/__init__.py"
+ rm "$out/lib/${python.libPrefix}/site-packages/azure/cli/command_modules/__init__.py"
+ '';
+
+ propagatedBuildInputs = [
+ azure-cli-command-modules-nspkg
+ azure-cli-core
+ pip
+ wheel
+ ];
+
+ doCheck = false;
+
+ meta = with stdenv.lib; {
+ description = "Microsoft Azure Command-Line Tools Extension Command Module";
+ homepage = https://github.com/Azure/azure-cli;
+ license = licenses.mit;
+ maintainers = with maintainers; [ stesie ];
+ };
+}