From 548c320a5ed2c6d97a37ce6d304849b280b82df6 Mon Sep 17 00:00:00 2001 From: dish Date: Thu, 5 Dec 2024 12:46:59 -0500 Subject: [PATCH] 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 ]; }; }