From 4520406c083da799544f3974bf0d02db7a214559 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 9 Dec 2025 09:01:59 -0800 Subject: [PATCH] python3Packages.redis: 6.2.0 -> 7.1.0 Diff: https://github.com/redis/redis-py/compare/v6.2.0...v7.1.0 Changelog: https://github.com/redis/redis-py/releases/tag/v6.3.0 https://github.com/redis/redis-py/releases/tag/v6.4.0 https://github.com/redis/redis-py/releases/tag/v7.0.0 https://github.com/redis/redis-py/releases/tag/v7.0.1 https://github.com/redis/redis-py/releases/tag/v7.1.0 --- .../python-modules/redis/default.nix | 33 +++++++++++-------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/redis/default.nix b/pkgs/development/python-modules/redis/default.nix index 102f467bc864..befb83be5099 100644 --- a/pkgs/development/python-modules/redis/default.nix +++ b/pkgs/development/python-modules/redis/default.nix @@ -1,20 +1,24 @@ { lib, - fetchPypi, + fetchFromGitHub, buildPythonPackage, + pythonOlder, # build-system hatchling, # dependencies async-timeout, - deprecated, - packaging, - typing-extensions, + + # extras: circuit_breaker + pybreaker, # extras: hiredis hiredis, + # extras: jwt + pyjwt, + # extras: ocsp cryptography, pyopenssl, @@ -23,25 +27,26 @@ buildPythonPackage rec { pname = "redis"; - version = "6.2.0"; + version = "7.1.0"; pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-6CHxKbdd3my5ndNeXHboxJUSpaDY39xWCy+9RLhcqXc="; + src = fetchFromGitHub { + owner = "redis"; + repo = "redis-py"; + tag = "v${version}"; + hash = "sha256-EhhE2l0UdkGWhCwKAF7fuSxq4ooj75Cxwg2zXjJJRzA="; }; build-system = [ hatchling ]; - dependencies = [ + dependencies = lib.optionals (pythonOlder "3.11") [ async-timeout - deprecated - packaging - typing-extensions ]; optional-dependencies = { + circuit_breaker = [ pybreaker ]; hiredis = [ hiredis ]; + jwt = [ pyjwt ]; ocsp = [ cryptography pyopenssl @@ -65,7 +70,7 @@ buildPythonPackage rec { meta = { description = "Python client for Redis key-value store"; homepage = "https://github.com/redis/redis-py"; - changelog = "https://github.com/redis/redis-py/releases/tag/v${version}"; - license = with lib.licenses; [ mit ]; + changelog = "https://github.com/redis/redis-py/releases/tag/${src.tag}"; + license = lib.licenses.mit; }; }