diff --git a/pkgs/development/python-modules/azure-mgmt-network/default.nix b/pkgs/development/python-modules/azure-mgmt-network/default.nix index a140c779fff1..b08a729d5f46 100644 --- a/pkgs/development/python-modules/azure-mgmt-network/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-network/default.nix @@ -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 ]; }; }