python312Packages.aiocache: use redisTestHook, memcachedTestHook

+4 -14
+4 -14
pkgs/development/python-modules/aiocache/default.nix
··· 5 5 buildPythonPackage, 6 6 fetchFromGitHub, 7 7 marshmallow, 8 + memcachedTestHook, 8 9 msgpack, 9 - pkgs, 10 10 pytest-asyncio, 11 11 pytest-cov-stub, 12 12 pytest-mock, ··· 14 14 pythonAtLeast, 15 15 pythonOlder, 16 16 redis, 17 + redisTestHook, 17 18 setuptools, 18 19 }: 19 20 ··· 42 43 nativeCheckInputs = [ 43 44 aiohttp 44 45 marshmallow 46 + memcachedTestHook 45 47 pytest-asyncio 46 48 pytest-cov-stub 47 49 pytest-mock 48 50 pytestCheckHook 51 + redisTestHook 49 52 ] ++ lib.flatten (lib.attrValues optional-dependencies); 50 53 51 54 pytestFlagsArray = [ ··· 69 72 # Benchmark and performance tests are not relevant for Nixpkgs 70 73 "tests/performance/" 71 74 ]; 72 - 73 - preCheck = '' 74 - ${lib.getBin pkgs.redis}/bin/redis-server & 75 - REDIS_PID=$! 76 - 77 - ${lib.getBin pkgs.memcached}/bin/memcached & 78 - MEMCACHED_PID=$! 79 - ''; 80 - 81 - postCheck = '' 82 - kill $REDIS_PID 83 - kill $MEMCACHED_PID 84 - ''; 85 75 86 76 __darwinAllowLocalNetworking = true; 87 77