From 60e80939afff3756289b3ec567e48757f946a7aa Mon Sep 17 00:00:00 2001 From: Harinn Date: Thu, 4 Jun 2026 21:37:37 +0700 Subject: [PATCH 1/2] python3Packages.azure-mgmt-iotcentral: migrate to pyproject --- .../python-modules/azure-mgmt-iotcentral/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-iotcentral/default.nix b/pkgs/development/python-modules/azure-mgmt-iotcentral/default.nix index 7ad7300aa707..bbb38fc0265c 100644 --- a/pkgs/development/python-modules/azure-mgmt-iotcentral/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-iotcentral/default.nix @@ -8,12 +8,13 @@ azure-mgmt-core, azure-mgmt-nspkg, isPy3k, + setuptools, }: buildPythonPackage rec { pname = "azure-mgmt-iotcentral"; version = "9.0.0"; - format = "setuptools"; + pyproject = true; src = fetchPypi { inherit pname version; @@ -21,7 +22,9 @@ buildPythonPackage rec { sha256 = "64df73df449a6f3717f3d0963e5869224ed3e6216c79de571493bea7c1b52cb6"; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ azure-common azure-mgmt-core msrest From a1090402a06a7d00015f18a4f4f2a641a3dbb176 Mon Sep 17 00:00:00 2001 From: Harinn Date: Thu, 4 Jun 2026 21:44:55 +0700 Subject: [PATCH 2/2] python3Packages.azure-mgmt-iotcentral: modernize --- .../python-modules/azure-mgmt-iotcentral/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-iotcentral/default.nix b/pkgs/development/python-modules/azure-mgmt-iotcentral/default.nix index bbb38fc0265c..abe83beecdf5 100644 --- a/pkgs/development/python-modules/azure-mgmt-iotcentral/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-iotcentral/default.nix @@ -11,15 +11,17 @@ setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "azure-mgmt-iotcentral"; version = "9.0.0"; pyproject = true; + __structuredAttrs = true; + src = fetchPypi { - inherit pname version; + inherit (finalAttrs) pname version; extension = "zip"; - sha256 = "64df73df449a6f3717f3d0963e5869224ed3e6216c79de571493bea7c1b52cb6"; + hash = "sha256-ZN9z30SabzcX89CWPlhpIk7T5iFsed5XFJO+p8G1LLY="; }; build-system = [ setuptools ]; @@ -35,10 +37,12 @@ buildPythonPackage rec { # has no tests doCheck = false; + pythonImportsCheck = [ "azure.mgmt.iotcentral" ]; + meta = { description = "This is the Microsoft Azure IoTCentral Management Client Library"; homepage = "https://github.com/Azure/azure-sdk-for-python"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ maxwilson ]; }; -} +})