python312Packages.walrus: use redisTestHook
This commit is contained in:
@@ -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" ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user