From c8fe7b0ad9e30f4a3b9bcaf8ec57f19a204712be Mon Sep 17 00:00:00 2001 From: Hythera <87016780+Hythera@users.noreply.github.com> Date: Wed, 3 Jun 2026 17:16:10 +0200 Subject: [PATCH] python3Packages.hiredis: modernize --- pkgs/development/python-modules/hiredis/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/hiredis/default.nix b/pkgs/development/python-modules/hiredis/default.nix index 32f16418edd8..55c2725e9edb 100644 --- a/pkgs/development/python-modules/hiredis/default.nix +++ b/pkgs/development/python-modules/hiredis/default.nix @@ -10,7 +10,7 @@ pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "hiredis"; version = "3.4.0"; pyproject = true; @@ -18,7 +18,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "redis"; repo = "hiredis-py"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; fetchSubmodules = true; hash = "sha256-TXhl9ny6hdd4n/hHfTAL0ewGcnjZ1vvNwovklSgzkKk="; }; @@ -36,8 +36,8 @@ buildPythonPackage rec { meta = { description = "Wraps protocol parsing code in hiredis, speeds up parsing of multi bulk replies"; homepage = "https://github.com/redis/hiredis-py"; - changelog = "https://github.com/redis/hiredis-py/blob/${src.tag}/CHANGELOG.md"; + changelog = "https://github.com/redis/hiredis-py/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.bsd3; maintainers = [ ]; }; -} +})