blob: 9e398a8ea9e8c15421377a4372a7a9f6b7301822 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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 ];
};
}
|