python312Packages.aiocache: use redisTestHook, memcachedTestHook

+4 -14
+4 -14
pkgs/development/python-modules/aiocache/default.nix
··· 5 buildPythonPackage, 6 fetchFromGitHub, 7 marshmallow, 8 msgpack, 9 - pkgs, 10 pytest-asyncio, 11 pytest-cov-stub, 12 pytest-mock, ··· 14 pythonAtLeast, 15 pythonOlder, 16 redis, 17 setuptools, 18 }: 19 ··· 42 nativeCheckInputs = [ 43 aiohttp 44 marshmallow 45 pytest-asyncio 46 pytest-cov-stub 47 pytest-mock 48 pytestCheckHook 49 ] ++ lib.flatten (lib.attrValues optional-dependencies); 50 51 pytestFlagsArray = [ ··· 69 # Benchmark and performance tests are not relevant for Nixpkgs 70 "tests/performance/" 71 ]; 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 86 __darwinAllowLocalNetworking = true; 87
··· 5 buildPythonPackage, 6 fetchFromGitHub, 7 marshmallow, 8 + memcachedTestHook, 9 msgpack, 10 pytest-asyncio, 11 pytest-cov-stub, 12 pytest-mock, ··· 14 pythonAtLeast, 15 pythonOlder, 16 redis, 17 + redisTestHook, 18 setuptools, 19 }: 20 ··· 43 nativeCheckInputs = [ 44 aiohttp 45 marshmallow 46 + memcachedTestHook 47 pytest-asyncio 48 pytest-cov-stub 49 pytest-mock 50 pytestCheckHook 51 + redisTestHook 52 ] ++ lib.flatten (lib.attrValues optional-dependencies); 53 54 pytestFlagsArray = [ ··· 72 # Benchmark and performance tests are not relevant for Nixpkgs 73 "tests/performance/" 74 ]; 75 76 __darwinAllowLocalNetworking = true; 77