2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2020-10-07 09:15:18 +00:00
|
|
|
, fetchPypi
|
2020-04-24 23:36:52 +00:00
|
|
|
, msrestazure
|
|
|
|
, azure-common
|
|
|
|
, azure-mgmt-nspkg
|
|
|
|
, python
|
|
|
|
, isPy3k
|
|
|
|
}:
|
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
buildPythonPackage rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "azure-mgmt-commerce";
|
|
|
|
version = "1.0.1";
|
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
extension = "zip";
|
|
|
|
sha256 = "1hw4crkgb72ps85m2kz9kf8p2wg9qmaagk3z5nydva9g6bnq93n4";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
msrestazure
|
|
|
|
azure-common
|
|
|
|
azure-mgmt-nspkg
|
|
|
|
];
|
|
|
|
|
2020-10-07 09:15:18 +00: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" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# has no tests
|
|
|
|
doCheck = false;
|
2020-10-07 09:15:18 +00:00
|
|
|
pythonImportsCheck = [ "azure.mgmt.commerce" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "This is the Microsoft Azure Commerce Management Client Library";
|
|
|
|
homepage = "https://github.com/Azure/azure-sdk-for-python";
|
|
|
|
license = licenses.mit;
|
2020-11-19 00:13:47 +00:00
|
|
|
maintainers = with maintainers; [ maxwilson jonringer ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|