From bb05f385eb9eb28e744174f6648f8cd962f54265 Mon Sep 17 00:00:00 2001 From: Harinn Date: Thu, 4 Jun 2026 21:34:59 +0700 Subject: [PATCH] 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 ]; }; -} +})