2019-04-29 23:19:45 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2019-10-23 11:06:46 +01:00
|
|
|
, fetchPypi
|
2019-04-29 23:19:45 +01:00
|
|
|
, msrestazure
|
|
|
|
, azure-common
|
2021-05-21 06:27:23 +01:00
|
|
|
, azure-mgmt-core
|
2019-04-29 23:19:45 +01:00
|
|
|
, azure-mgmt-nspkg
|
|
|
|
, python
|
|
|
|
, isPy3k
|
|
|
|
}:
|
|
|
|
|
2019-10-23 11:06:46 +01:00
|
|
|
buildPythonPackage rec {
|
2019-04-29 23:19:45 +01:00
|
|
|
pname = "azure-mgmt-billing";
|
2021-05-21 06:27:23 +01:00
|
|
|
version = "6.0.0"; #pypi's 0.2.0 doesn't build ootb
|
2019-04-29 23:19:45 +01:00
|
|
|
|
2019-10-23 11:06:46 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-05-21 06:27:23 +01:00
|
|
|
sha256 = "d4f5c5a4188a456fe1eb32b6c45f55ca2069c74be41eb76921840b39f2f5c07f";
|
2019-10-23 11:06:46 +01:00
|
|
|
extension = "zip";
|
2019-04-29 23:19:45 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
msrestazure
|
|
|
|
azure-common
|
2021-05-21 06:27:23 +01:00
|
|
|
azure-mgmt-core
|
2019-04-29 23:19:45 +01:00
|
|
|
azure-mgmt-nspkg
|
|
|
|
];
|
|
|
|
|
2019-10-23 11:06:46 +01:00
|
|
|
preBuild = ''
|
2020-11-02 17:12:40 +00:00
|
|
|
rm -rf azure_bdist_wheel.py
|
2019-10-23 11:06:46 +01:00
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace "azure-namespace-package = azure-mgmt-nspkg" ""
|
|
|
|
'';
|
|
|
|
|
2020-03-17 22:43:56 +00:00
|
|
|
pythonNamespaces = [ "azure.mgmt" ];
|
2019-10-23 11:06:46 +01:00
|
|
|
|
2019-04-29 23:19:45 +01:00
|
|
|
# has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "This is the Microsoft Azure Billing Client Library";
|
2019-10-19 17:47:11 +01:00
|
|
|
homepage = "https://github.com/Azure/azure-sdk-for-python";
|
2019-04-29 23:19:45 +01:00
|
|
|
license = licenses.mit;
|
2020-11-15 14:35:46 +00:00
|
|
|
maintainers = with maintainers; [ maxwilson ];
|
2019-04-29 23:19:45 +01:00
|
|
|
};
|
|
|
|
}
|