aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/azure-cli-core
diff options
context:
space:
mode:
authorStefan Siegl <stesie@brokenpipe.de>2018-09-10 18:33:48 +0200
committerStefan Siegl <stesie@brokenpipe.de>2018-09-10 18:33:48 +0200
commitb6714f59cce26ddc831ca4a213e8f56476184fb1 (patch)
tree48abe892298c6d9e77d48e9de7d848af9beee71d /pkgs/development/python-modules/azure-cli-core
initial commit
Diffstat (limited to 'pkgs/development/python-modules/azure-cli-core')
-rw-r--r--pkgs/development/python-modules/azure-cli-core/default.nix60
1 files changed, 60 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/azure-cli-core/default.nix b/pkgs/development/python-modules/azure-cli-core/default.nix
new file mode 100644
index 0000000..56d4564
--- /dev/null
+++ b/pkgs/development/python-modules/azure-cli-core/default.nix
@@ -0,0 +1,60 @@
+{ stdenv, buildPythonPackage, fetchPypi, python
+, adal
+, argcomplete
+, azure-cli-telemetry
+, colorama
+, humanfriendly
+, jmespath
+, knack
+, msrest
+, msrestazure
+, paramiko
+, pip
+, pygments
+, pyjwt
+, pyopenssl
+, pyyaml
+, requests
+, six
+, tabulate
+, azure-mgmt-resource
+, azure-cli-nspkg
+, antlr4-python3-runtime
+}:
+
+buildPythonPackage rec {
+ pname = "azure-cli-core";
+ version = "2.0.43";
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "08q8gxpgs15rvwxf6dmryg9ax9ki7sy22jaqfi7g9y1rvfbnqmlq";
+ };
+
+ # 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_core.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"
+ '';
+
+ propagatedBuildInputs = [ adal argcomplete azure-cli-telemetry colorama
+ humanfriendly jmespath knack msrest msrestazure
+ paramiko pip pygments pyjwt pyopenssl pyyaml
+ requests six tabulate azure-mgmt-resource
+ azure-cli-nspkg antlr4-python3-runtime
+ ];
+
+ doCheck = false;
+
+ meta = with stdenv.lib; {
+ description = "Microsoft Azure Command-Line Tools Core Module";
+ homepage = https://github.com/Azure/azure-cli;
+ license = licenses.mit;
+ maintainers = with maintainers; [ stesie ];
+ };
+}