From 7d3b9628762b0daabb2f82d2e48f16119e0e6e4c Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Mon, 28 Sep 2020 10:14:39 -0700 Subject: [PATCH] python3Packages.azure-mgmt-resource: 10.2.0 -> 15.0.0 --- .../azure-mgmt-resource/default.nix | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-resource/default.nix b/pkgs/development/python-modules/azure-mgmt-resource/default.nix index 07427ff1ff1..5467537f08b 100644 --- a/pkgs/development/python-modules/azure-mgmt-resource/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-resource/default.nix @@ -1,36 +1,39 @@ { pkgs , buildPythonPackage , fetchPypi -, python +, azure-mgmt-core , azure-mgmt-common , isPy3k }: buildPythonPackage rec { - version = "10.2.0"; + version = "15.0.0"; pname = "azure-mgmt-resource"; + disabled = !isPy3k; src = fetchPypi { inherit pname version; extension = "zip"; - sha256 = "ddfe4c0c55f0e3fd1f66dd82c1d4a3d872ce124639b9a77fcd172daf464438a5"; + sha256 = "80ecb69aa21152b924edf481e4b26c641f11aa264120bc322a14284811df9c14"; }; - 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 ]; + propagatedBuildInputs = [ + azure-mgmt-common + azure-mgmt-core + ]; # has no tests doCheck = false; + pythonNamespaces = [ "azure.mgmt" ]; + + pythonImportsCheck = [ "azure.mgmt.resource" ]; + meta = with pkgs.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 ]; }; }