From 2cd74fc15402259714eb39bf835772634eab34f3 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 11 May 2022 01:49:43 +0000 Subject: [PATCH 1/2] python310Packages.azure-mgmt-network: 19.3.0 -> 20.0.0 --- .../development/python-modules/azure-mgmt-network/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-network/default.nix b/pkgs/development/python-modules/azure-mgmt-network/default.nix index 6da9e8e2e0b4..fa05c6bcdf84 100644 --- a/pkgs/development/python-modules/azure-mgmt-network/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-network/default.nix @@ -9,14 +9,14 @@ }: buildPythonPackage rec { - version = "19.3.0"; + version = "20.0.0"; pname = "azure-mgmt-network"; disabled = !isPy3k; src = fetchPypi { inherit pname version; extension = "zip"; - sha256 = "0b6a1ccdffd76e057ab16a6c319740a0ca68d59fedf7e9c02f2437396e72aa11"; + sha256 = "sha256-mnjPyCAJ+rlNgZ4umSYjfVVVg83EobZYY/zupyDjdoY="; }; propagatedBuildInputs = [ From 7d045a76dd810bb0328ed46ba7d770760a44f52e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 11 May 2022 08:36:03 +0200 Subject: [PATCH 2/2] python310Packages.azure-mgmt-network: disable on older Python releases --- .../azure-mgmt-network/default.nix | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-network/default.nix b/pkgs/development/python-modules/azure-mgmt-network/default.nix index fa05c6bcdf84..93cd52c63d19 100644 --- a/pkgs/development/python-modules/azure-mgmt-network/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-network/default.nix @@ -5,18 +5,20 @@ , azure-mgmt-core , msrest , msrestazure -, isPy3k +, pythonOlder }: buildPythonPackage rec { version = "20.0.0"; pname = "azure-mgmt-network"; - disabled = !isPy3k; + format = "setuptools"; + + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; extension = "zip"; - sha256 = "sha256-mnjPyCAJ+rlNgZ4umSYjfVVVg83EobZYY/zupyDjdoY="; + hash = "sha256-mnjPyCAJ+rlNgZ4umSYjfVVVg83EobZYY/zupyDjdoY="; }; propagatedBuildInputs = [ @@ -26,12 +28,16 @@ buildPythonPackage rec { msrestazure ]; - # has no tests + # Module has no tests doCheck = false; - pythonNamespaces = [ "azure.mgmt" ]; + pythonNamespaces = [ + "azure.mgmt" + ]; - pythonImportsCheck = [ "azure.mgmt.network" ]; + pythonImportsCheck = [ + "azure.mgmt.network" + ]; meta = with lib; { description = "Microsoft Azure SDK for Python";