2019-04-29 23:23:48 +02:00
|
|
|
{ lib
|
2018-10-10 18:26:45 +02:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, azure-mgmt-common
|
|
|
|
, python
|
2019-04-29 23:23:48 +02:00
|
|
|
, isPy3k
|
2018-10-10 18:26:45 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-08-20 08:37:25 +02:00
|
|
|
version = "4.0.0";
|
2018-10-10 18:26:45 +02:00
|
|
|
pname = "azure-mgmt-network";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
extension = "zip";
|
2019-08-20 08:37:25 +02:00
|
|
|
sha256 = "0h2lnigmh2arq0ppwjk8h9rqxplj6s7h7qxwyv7wirk0ydx6cfd9";
|
2018-10-10 18:26:45 +02:00
|
|
|
};
|
|
|
|
|
2019-04-29 23:23:48 +02:00
|
|
|
postInstall = if isPy3k then "" else ''
|
2018-10-10 18:26:45 +02:00
|
|
|
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py
|
|
|
|
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/mgmt/__init__.py
|
|
|
|
'';
|
|
|
|
|
2019-04-29 23:23:48 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
azure-mgmt-common
|
|
|
|
];
|
2018-10-10 18:26:45 +02:00
|
|
|
|
2019-04-29 23:23:48 +02:00
|
|
|
# has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2018-10-10 18:26:45 +02:00
|
|
|
description = "Microsoft Azure SDK for Python";
|
2019-04-29 23:23:48 +02:00
|
|
|
homepage = https://docs.microsoft.com/en-us/python/api/overview/azure/network?view=azure-python;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ olcai mwilsoninsight ];
|
2018-10-10 18:26:45 +02:00
|
|
|
};
|
|
|
|
}
|