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-billing";
12 version = "6.0.0"; #pypi's 0.2.0 doesn't build ootb
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "d4f5c5a4188a456fe1eb32b6c45f55ca2069c74be41eb76921840b39f2f5c07f";
17 extension = "zip";
18 };
19
20 propagatedBuildInputs = [
21 msrestazure
22 azure-common
23 azure-mgmt-core
24 azure-mgmt-nspkg
25 ];
26
27 preBuild = ''
28 rm -rf 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 Billing Client Library";
40 homepage = "https://github.com/Azure/azure-sdk-for-python";
41 license = licenses.mit;
42 maintainers = with maintainers; [ maxwilson ];
43 };
44}