From 9e7fccbc7cf8937f0de1e7c5190121c56e018589 Mon Sep 17 00:00:00 2001 From: dish Date: Thu, 5 Dec 2024 12:43:58 -0500 Subject: [PATCH 1/2] python312Packages.azure-mgmt-servicebus: remove unused msrestazure dependency --- .../python-modules/azure-mgmt-servicebus/default.nix | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-servicebus/default.nix b/pkgs/development/python-modules/azure-mgmt-servicebus/default.nix index 1606e56cccdc..5a65c44388ea 100644 --- a/pkgs/development/python-modules/azure-mgmt-servicebus/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-servicebus/default.nix @@ -3,7 +3,6 @@ buildPythonPackage, fetchPypi, msrest, - msrestazure, azure-common, azure-mgmt-core, pythonOlder, @@ -24,7 +23,6 @@ buildPythonPackage rec { propagatedBuildInputs = [ msrest - msrestazure azure-common azure-mgmt-core ]; From 548c320a5ed2c6d97a37ce6d304849b280b82df6 Mon Sep 17 00:00:00 2001 From: dish Date: Thu, 5 Dec 2024 12:46:59 -0500 Subject: [PATCH 2/2] python312Packages.azure-mgmt-servicebus: modernize --- .../azure-mgmt-servicebus/default.nix | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-servicebus/default.nix b/pkgs/development/python-modules/azure-mgmt-servicebus/default.nix index 5a65c44388ea..417528219abf 100644 --- a/pkgs/development/python-modules/azure-mgmt-servicebus/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-servicebus/default.nix @@ -5,15 +5,13 @@ msrest, azure-common, azure-mgmt-core, - pythonOlder, + setuptools, }: buildPythonPackage rec { pname = "azure-mgmt-servicebus"; version = "8.2.0"; - format = "setuptools"; - - disabled = pythonOlder "3.7"; + pyproject = true; src = fetchPypi { inherit pname version; @@ -21,7 +19,9 @@ buildPythonPackage rec { hash = "sha256-i+kgjxQdmnifaNuNIZdU/3gGn9j5OQ6fdkS7laO+nsI="; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ msrest azure-common azure-mgmt-core @@ -30,10 +30,14 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - meta = with lib; { + pythonNamespaces = [ "azure.mgmt" ]; + + pythonImportsCheck = [ "azure.mgmt.servicebus" ]; + + meta = { description = "This is the Microsoft Azure Service Bus Management Client Library"; homepage = "https://github.com/Azure/azure-sdk-for-python"; - license = licenses.mit; - maintainers = with maintainers; [ maxwilson ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ maxwilson ]; }; }