Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / azure-mgmt-billing / default.nix
blob94b90e6b196d038d1b39dc8b8a8f0142a956625b
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , msrestazure
5 , azure-common
6 , azure-mgmt-core
7 , azure-mgmt-nspkg
8 }:
10 buildPythonPackage rec {
11   pname = "azure-mgmt-billing";
12   version = "6.0.0"; #pypi's 0.2.0 doesn't build ootb
14   src = fetchPypi {
15     inherit pname version;
16     sha256 = "d4f5c5a4188a456fe1eb32b6c45f55ca2069c74be41eb76921840b39f2f5c07f";
17     extension = "zip";
18   };
20   propagatedBuildInputs = [
21     msrestazure
22     azure-common
23     azure-mgmt-core
24     azure-mgmt-nspkg
25   ];
27   preBuild = ''
28     rm -rf azure_bdist_wheel.py
29     substituteInPlace setup.cfg \
30       --replace "azure-namespace-package = azure-mgmt-nspkg" ""
31   '';
33   pythonNamespaces = [ "azure.mgmt" ];
35   # has no tests
36   doCheck = false;
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   };