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
|
|
|
|
, 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";
|
|
|
|
version = "0.2.0"; #pypi's 0.2.0 doesn't build ootb
|
|
|
|
|
2019-10-23 11:06:46 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "1li2bcdwdapwwx7xbvgfsq51f2mrwm0qyzih8cjhszcah2rkpxw5";
|
|
|
|
extension = "zip";
|
2019-04-29 23:19:45 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
msrestazure
|
|
|
|
azure-common
|
|
|
|
azure-mgmt-nspkg
|
|
|
|
];
|
|
|
|
|
2019-10-23 11:06:46 +01:00
|
|
|
preBuild = ''
|
|
|
|
rm azure_bdist_wheel.py
|
|
|
|
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;
|
|
|
|
maintainers = with maintainers; [ mwilsoninsight ];
|
|
|
|
};
|
|
|
|
}
|