From b6714f59cce26ddc831ca4a213e8f56476184fb1 Mon Sep 17 00:00:00 2001 From: Stefan Siegl Date: Mon, 10 Sep 2018 18:33:48 +0200 Subject: initial commit --- .../python-modules/azure-cli-extension/default.nix | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 pkgs/development/python-modules/azure-cli-extension/default.nix (limited to 'pkgs/development/python-modules/azure-cli-extension') 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 ]; + }; +} -- cgit v1.2.3