1{ lib
2, buildPythonPackage
3, fetchPypi
4, msrestazure
5, azure-common
6, azure-mgmt-core
7, azure-mgmt-nspkg
8}:
9
10buildPythonPackage rec {
11 pname = "azure-mgmt-consumption";
12 version = "10.0.0";
13
14 src = fetchPypi {
15 inherit pname version;
16 extension = "zip";
17 hash = "sha256-BqCGQ2wXN/d6uGiU1R9Zc7bg+l7fVlWOTCllieurkTA=";
18 };
19
20 propagatedBuildInputs = [
21 msrestazure
22 azure-common
23 azure-mgmt-core
24 azure-mgmt-nspkg
25 ];
26
27 preBuild = ''
28 rm -f azure_bdist_wheel.py
29 substituteInPlace setup.cfg \
30 --replace "azure-namespace-package = azure-mgmt-nspkg" ""
31 '';
32
33 pythonNamespaces = [ "azure.mgmt" ];
34
35 # has no tests
36 doCheck = false;
37
38 meta = with lib; {
39 description = "This is the Microsoft Azure Consumption Management Client Library";
40 homepage = "https://github.com/Azure/azure-sdk-for-python";
41 license = licenses.mit;
42 maintainers = with maintainers; [ maxwilson ];
43 };
44}