From c00c0bf72067b544ac49901791e8bddee6d174cb Mon Sep 17 00:00:00 2001 From: Harinn Date: Thu, 4 Jun 2026 22:13:42 +0700 Subject: [PATCH] python3Packages.azure-mgmt-redis: modernize --- .../python-modules/azure-mgmt-redis/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-redis/default.nix b/pkgs/development/python-modules/azure-mgmt-redis/default.nix index b8e64dea0acd..60f829c75b4e 100644 --- a/pkgs/development/python-modules/azure-mgmt-redis/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-redis/default.nix @@ -8,13 +8,15 @@ setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "azure-mgmt-redis"; version = "14.5.0"; pyproject = true; + __structuredAttrs = true; + src = fetchPypi { - inherit version; + inherit (finalAttrs) version; pname = "azure_mgmt_redis"; hash = "sha256-XDQ0yCSSaI4luTqvURPs/wuSt61toqT9RpVTD4KxUvo="; }; @@ -35,8 +37,8 @@ buildPythonPackage rec { meta = { description = "This is the Microsoft Azure Redis Cache Management Client Library"; homepage = "https://github.com/Azure/azure-sdk-for-python"; - changelog = "https://github.com/Azure/azure-sdk-for-python/blob/azure-mgmt-redis_${version}/sdk/redis/azure-mgmt-redis/CHANGELOG.md"; + changelog = "https://github.com/Azure/azure-sdk-for-python/blob/azure-mgmt-redis_${finalAttrs.version}/sdk/redis/azure-mgmt-redis/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ maxwilson ]; }; -} +})