python3Packages.azure-mgmt-network: 11.0.0 -> 16.0.0

This commit is contained in:
Jonathan Ringer 2020-09-28 10:14:39 -07:00 committed by Jon
parent 681b44656a
commit 1f646188a2

View file

@ -1,37 +1,43 @@
{ lib
, buildPythonPackage
, fetchPypi
, azure-common
, azure-mgmt-common
, python
, azure-mgmt-core
, msrest
, msrestazure
, isPy3k
}:
buildPythonPackage rec {
version = "11.0.0";
version = "16.0.0";
pname = "azure-mgmt-network";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "7fdfc631c660cb173eee88abbb7b8be7742f91b522be6017867f217409cd69bc";
sha256 = "6159a8c44590cc58841690c27c7d4acb0cd9ad0a1e5178c1d35e0f48e3c3c0e9";
};
postInstall = if isPy3k then "" else ''
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
'';
propagatedBuildInputs = [
azure-mgmt-common
azure-common
azure-mgmt-core
msrest
msrestazure
];
# has no tests
doCheck = false;
pythonNamespaces = [ "azure.mgmt" ];
pythonImportsCheck = [ "azure.mgmt.network" ];
meta = with lib; {
description = "Microsoft Azure SDK for Python";
homepage = "https://github.com/Azure/azure-sdk-for-python";
license = licenses.mit;
maintainers = with maintainers; [ olcai mwilsoninsight ];
maintainers = with maintainers; [ olcai mwilsoninsight jonringer ];
};
}