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