python312Packages.walrus: use redisTestHook

This commit is contained in:
Olivér Falvai
2024-11-30 20:09:04 +01:00
parent 32e3945c96
commit 44ba8fd41d

View File

@@ -2,9 +2,9 @@
lib,
buildPythonPackage,
fetchFromGitHub,
pkgs,
pythonOlder,
redis,
redisTestHook,
setuptools,
unittestCheckHook,
}:
@@ -27,16 +27,10 @@ buildPythonPackage rec {
dependencies = [ redis ];
nativeCheckInputs = [ unittestCheckHook ];
preCheck = ''
${pkgs.redis}/bin/redis-server &
REDIS_PID=$!
'';
postCheck = ''
kill $REDIS_PID
'';
nativeCheckInputs = [
unittestCheckHook
redisTestHook
];
pythonImportsCheck = [ "walrus" ];