From 63b7d327dcfeefb021da70c0f1ffa800c4f74263 Mon Sep 17 00:00:00 2001 From: Harinn Date: Thu, 4 Jun 2026 22:03:55 +0700 Subject: [PATCH 1/2] python3Packages.azure-mgmt-notificationhubs: migrate to pyproject --- .../python-modules/azure-mgmt-notificationhubs/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-notificationhubs/default.nix b/pkgs/development/python-modules/azure-mgmt-notificationhubs/default.nix index 9c15035259c5..35fedf20cc0c 100644 --- a/pkgs/development/python-modules/azure-mgmt-notificationhubs/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-notificationhubs/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchPypi, + setuptools, msrest, msrestazure, azure-common, @@ -12,7 +13,7 @@ buildPythonPackage rec { pname = "azure-mgmt-notificationhubs"; version = "8.0.0"; - format = "setuptools"; + pyproject = true; src = fetchPypi { inherit pname version; @@ -20,7 +21,9 @@ buildPythonPackage rec { sha256 = "4dd924f4704993e3ebf1d42e2be1cbe0b0d908e695857fa08c4369ae11d0eb36"; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ msrest msrestazure azure-common From 8212a2d007e9fc5ca5b3e308711999904b10a66f Mon Sep 17 00:00:00 2001 From: Harinn Date: Thu, 4 Jun 2026 22:12:15 +0700 Subject: [PATCH 2/2] python3Packages.azure-mgmt-notificationhubs: modernize --- .../azure-mgmt-notificationhubs/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-notificationhubs/default.nix b/pkgs/development/python-modules/azure-mgmt-notificationhubs/default.nix index 35fedf20cc0c..10f3e7e3b1e8 100644 --- a/pkgs/development/python-modules/azure-mgmt-notificationhubs/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-notificationhubs/default.nix @@ -10,15 +10,17 @@ azure-mgmt-nspkg, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "azure-mgmt-notificationhubs"; version = "8.0.0"; pyproject = true; + __structuredAttrs = true; + src = fetchPypi { - inherit pname version; + inherit (finalAttrs) pname version; extension = "zip"; - sha256 = "4dd924f4704993e3ebf1d42e2be1cbe0b0d908e695857fa08c4369ae11d0eb36"; + hash = "sha256-Tdkk9HBJk+Pr8dQuK+HL4LDZCOaVhX+gjENprhHQ6zY="; }; build-system = [ setuptools ]; @@ -34,10 +36,12 @@ buildPythonPackage rec { # has no tests doCheck = false; + pythonImportsCheck = [ "azure.mgmt.notificationhubs" ]; + meta = { description = "This is the Microsoft Azure Notification Hubs Management Client Library"; homepage = "https://github.com/Azure/azure-sdk-for-python"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ maxwilson ]; }; -} +})