From c4a94d183f9c205cea0f7a75fd98281cf7d10140 Mon Sep 17 00:00:00 2001 From: Harinn Date: Thu, 4 Jun 2026 21:25:36 +0700 Subject: [PATCH 1/2] python3Packages.azure-mgmt-hanaonazure: migrate to pyproject --- .../python-modules/azure-mgmt-hanaonazure/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-hanaonazure/default.nix b/pkgs/development/python-modules/azure-mgmt-hanaonazure/default.nix index dcd12e7b7306..0afd485059e0 100644 --- a/pkgs/development/python-modules/azure-mgmt-hanaonazure/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-hanaonazure/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchPypi, + setuptools, msrest, msrestazure, azure-common, @@ -13,7 +14,7 @@ buildPythonPackage rec { pname = "azure-mgmt-hanaonazure"; version = "1.0.0"; - format = "setuptools"; + pyproject = true; src = fetchPypi { inherit pname version; @@ -21,7 +22,9 @@ buildPythonPackage rec { sha256 = "f2f8342fbfded8be4165fb0d6f010b68df074886811db3e2c9a50b360ee2dd3a"; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ msrest msrestazure azure-common From bb05f385eb9eb28e744174f6648f8cd962f54265 Mon Sep 17 00:00:00 2001 From: Harinn Date: Thu, 4 Jun 2026 21:34:59 +0700 Subject: [PATCH 2/2] python3Packages.azure-mgmt-hanaonazure: modernize --- .../azure-mgmt-hanaonazure/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-hanaonazure/default.nix b/pkgs/development/python-modules/azure-mgmt-hanaonazure/default.nix index 0afd485059e0..ad748df07389 100644 --- a/pkgs/development/python-modules/azure-mgmt-hanaonazure/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-hanaonazure/default.nix @@ -11,15 +11,17 @@ isPy3k, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "azure-mgmt-hanaonazure"; version = "1.0.0"; pyproject = true; + __structuredAttrs = true; + src = fetchPypi { - inherit pname version; + inherit (finalAttrs) pname version; extension = "zip"; - sha256 = "f2f8342fbfded8be4165fb0d6f010b68df074886811db3e2c9a50b360ee2dd3a"; + hash = "sha256-8vg0L7/e2L5BZfsNbwELaN8HSIaBHbPiyaULNg7i3To="; }; build-system = [ setuptools ]; @@ -35,10 +37,12 @@ buildPythonPackage rec { # has no tests doCheck = false; + pythonImportsCheck = [ "azure.mgmt.hanaonazure" ]; + meta = { description = "This is the Microsoft Azure SAP Hana on Azure Management Client Library"; homepage = "https://github.com/Azure/azure-sdk-for-python"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ maxwilson ]; }; -} +})