2019-04-29 23:23:46 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2020-10-06 09:07:31 +01:00
|
|
|
, fetchPypi
|
2019-04-29 23:23:46 +01:00
|
|
|
, msrestazure
|
|
|
|
, azure-common
|
2021-01-12 00:19:20 +00:00
|
|
|
, azure-mgmt-core
|
2019-04-29 23:23:46 +01:00
|
|
|
, azure-mgmt-nspkg
|
|
|
|
, python
|
|
|
|
, isPy3k
|
|
|
|
}:
|
|
|
|
|
2020-10-06 09:07:31 +01:00
|
|
|
buildPythonPackage rec {
|
2019-04-29 23:23:46 +01:00
|
|
|
pname = "azure-mgmt-commerce";
|
2021-01-12 00:19:20 +00:00
|
|
|
version = "6.0.0";
|
2019-04-29 23:23:46 +01:00
|
|
|
|
2020-10-06 09:07:31 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
extension = "zip";
|
2021-01-12 00:19:20 +00:00
|
|
|
sha256 = "6f5447395503b2318f451d24f8021ee08db1cac44f1c3337ea690700419626b6";
|
2019-04-29 23:23:46 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
msrestazure
|
|
|
|
azure-common
|
2021-01-12 00:19:20 +00:00
|
|
|
azure-mgmt-core
|
2019-04-29 23:23:46 +01:00
|
|
|
azure-mgmt-nspkg
|
|
|
|
];
|
|
|
|
|
2020-10-06 09:07:31 +01:00
|
|
|
prePatch = ''
|
|
|
|
rm -f azure_bdist_wheel.py tox.ini
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "wheel==0.30.0" "wheel"
|
|
|
|
sed -i "/azure-namespace-package/c\ " setup.cfg
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonNamespaces = [ "azure.mgmt" ];
|
|
|
|
|
2019-04-29 23:23:46 +01:00
|
|
|
# has no tests
|
|
|
|
doCheck = false;
|
2020-10-06 09:07:31 +01:00
|
|
|
pythonImportsCheck = [ "azure.mgmt.commerce" ];
|
2019-04-29 23:23:46 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "This is the Microsoft Azure Commerce Management Client Library";
|
2019-10-19 17:47:11 +01:00
|
|
|
homepage = "https://github.com/Azure/azure-sdk-for-python";
|
2019-04-29 23:23:46 +01:00
|
|
|
license = licenses.mit;
|
2020-11-15 14:35:46 +00:00
|
|
|
maintainers = with maintainers; [ maxwilson jonringer ];
|
2019-04-29 23:23:46 +01:00
|
|
|
};
|
|
|
|
}
|