valkey: 8.1.4 -> 9.0.1 (#457386)

This commit is contained in:
Martin Weinelt
2025-12-27 16:33:35 +00:00
committed by GitHub
2 changed files with 15 additions and 2 deletions
+2 -2
View File
@@ -25,13 +25,13 @@
stdenv.mkDerivation (finalAttrs: {
pname = "valkey";
version = "8.1.4";
version = "9.0.1";
src = fetchFromGitHub {
owner = "valkey-io";
repo = "valkey";
rev = finalAttrs.version;
hash = "sha256-obtmiDobMs/POqYH5XjqpzmjVrEC6gUsTc1rREDJ8tw=";
hash = "sha256-Y0jJIS2DSJWQJK0Uyzyb/WSHTE/uQZefRidf0hRQwNU=";
};
patches = lib.optional useSystemJemalloc ./use_system_jemalloc.patch;
@@ -2,6 +2,7 @@
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
buildPythonPackage,
pythonOlder,
@@ -40,6 +41,14 @@ buildPythonPackage rec {
hash = "sha256-woJYfgLNIVzTYj9q8IjXo+SXhQZkQdB/Ofv5StGy9Rc=";
};
patches = [
(fetchpatch {
# valkey 9.0 compat
url = "https://github.com/valkey-io/valkey-py/commit/c01505e547f614f278b882a016557b6ed652bb9f.patch";
hash = "sha256-rvA65inIioqdc+QV4KaaUv1I/TMZUq0TWaFJcJiy8NU=";
})
];
build-system = [ setuptools ];
dependencies = lib.optionals (pythonOlder "3.11") [ async-timeout ];
@@ -92,6 +101,10 @@ buildPythonPackage rec {
# OSError: AF_UNIX path too long
"test_uds_connect"
"test_network_connection_failure"
]
++ lib.optionals (pythonOlder "3.13") [
# multiple disconnects are counted instead of just one
"test_valkey_from_pool"
];
disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [