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
|
|
|
|
, 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";
|
|
|
|
version = "1.0.1";
|
|
|
|
|
2020-10-06 09:07:31 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
extension = "zip";
|
|
|
|
sha256 = "1hw4crkgb72ps85m2kz9kf8p2wg9qmaagk3z5nydva9g6bnq93n4";
|
2019-04-29 23:23:46 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
msrestazure
|
|
|
|
azure-common
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|