1{ lib
2, buildPythonPackage
3, fetchPypi
4, msrestazure
5, azure-common
6, azure-mgmt-core
7, azure-mgmt-nspkg
8, python
9, isPy3k
10}:
11
12buildPythonPackage rec {
13 pname = "azure-mgmt-billing";
14 version = "6.0.0"; #pypi's 0.2.0 doesn't build ootb
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}