From 10e49eb22a362e16e36ed29ad50d311713b539c1 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 25 Apr 2024 06:41:47 +0000 Subject: [PATCH 1/3] python311Packages.azure-mgmt-compute: 30.6.0 -> 31.0.0 --- .../development/python-modules/azure-mgmt-compute/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-compute/default.nix b/pkgs/development/python-modules/azure-mgmt-compute/default.nix index c4c4582a0f6d..7f9d683c3bd1 100644 --- a/pkgs/development/python-modules/azure-mgmt-compute/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-compute/default.nix @@ -10,14 +10,14 @@ buildPythonPackage rec { pname = "azure-mgmt-compute"; - version = "30.6.0"; + version = "31.0.0"; format = "setuptools"; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-TYDXI+xtTLlYNhfr7AcW59dLJzKsuu0CPtLjzHBT0A4="; + hash = "sha256-WlscT8GhnssCKhLe0b6LGxVfaXnQP7nvwEZC9gZkS78="; }; propagatedBuildInputs = [ From e0faedcb21ed744626e49b2b5b336c4c314e88b4 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 25 Apr 2024 17:22:19 +0200 Subject: [PATCH 2/3] python311Packages.azure-mgmt-compute: refactor --- .../azure-mgmt-compute/default.nix | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-compute/default.nix b/pkgs/development/python-modules/azure-mgmt-compute/default.nix index 7f9d683c3bd1..6bd46e62b90e 100644 --- a/pkgs/development/python-modules/azure-mgmt-compute/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-compute/default.nix @@ -5,27 +5,29 @@ , fetchPypi , isodate , pythonOlder -, typing-extensions +, setuptools }: buildPythonPackage rec { pname = "azure-mgmt-compute"; version = "31.0.0"; - format = "setuptools"; + pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; hash = "sha256-WlscT8GhnssCKhLe0b6LGxVfaXnQP7nvwEZC9gZkS78="; }; - propagatedBuildInputs = [ + build-system = [ + setuptools + ]; + + dependencies = [ azure-mgmt-common azure-mgmt-core isodate - ] ++ lib.optionals (pythonOlder "3.8") [ - typing-extensions ]; pythonNamespaces = [ @@ -41,7 +43,7 @@ buildPythonPackage rec { meta = with lib; { description = "This is the Microsoft Azure Compute Management Client Library"; - homepage = "https://github.com/Azure/azure-sdk-for-python"; + homepage = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/compute/azure-mgmt-compute"; changelog = "https://github.com/Azure/azure-sdk-for-python/blob/azure-mgmt-compute_${version}/sdk/compute/azure-mgmt-compute/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ olcai maxwilson ]; From c9a3a3870e4fd6303ea0fde1ecedb5b885287962 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 25 Apr 2024 17:22:35 +0200 Subject: [PATCH 3/3] python311Packages.azure-mgmt-compute: format with nixfmt --- .../azure-mgmt-compute/default.nix | 34 +++++++++---------- 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-compute/default.nix b/pkgs/development/python-modules/azure-mgmt-compute/default.nix index 6bd46e62b90e..27ec12780e71 100644 --- a/pkgs/development/python-modules/azure-mgmt-compute/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-compute/default.nix @@ -1,11 +1,12 @@ -{ lib -, azure-mgmt-common -, azure-mgmt-core -, buildPythonPackage -, fetchPypi -, isodate -, pythonOlder -, setuptools +{ + lib, + azure-mgmt-common, + azure-mgmt-core, + buildPythonPackage, + fetchPypi, + isodate, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-WlscT8GhnssCKhLe0b6LGxVfaXnQP7nvwEZC9gZkS78="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ azure-mgmt-common @@ -30,22 +29,21 @@ buildPythonPackage rec { isodate ]; - pythonNamespaces = [ - "azure.mgmt" - ]; + pythonNamespaces = [ "azure.mgmt" ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "azure.mgmt.compute" - ]; + pythonImportsCheck = [ "azure.mgmt.compute" ]; meta = with lib; { description = "This is the Microsoft Azure Compute Management Client Library"; homepage = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/compute/azure-mgmt-compute"; changelog = "https://github.com/Azure/azure-sdk-for-python/blob/azure-mgmt-compute_${version}/sdk/compute/azure-mgmt-compute/CHANGELOG.md"; license = licenses.mit; - maintainers = with maintainers; [ olcai maxwilson ]; + maintainers = with maintainers; [ + olcai + maxwilson + ]; }; }