summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/aiocache/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/aiocache/default.nix')
-rw-r--r--pkgs/development/python-modules/aiocache/default.nix18
1 files changed, 4 insertions, 14 deletions
diff --git a/pkgs/development/python-modules/aiocache/default.nix b/pkgs/development/python-modules/aiocache/default.nix
index 1ebdfabfbdb4..82452e6b1a03 100644
--- a/pkgs/development/python-modules/aiocache/default.nix
+++ b/pkgs/development/python-modules/aiocache/default.nix
@@ -5,8 +5,8 @@
buildPythonPackage,
fetchFromGitHub,
marshmallow,
+ memcachedTestHook,
msgpack,
- pkgs,
pytest-asyncio,
pytest-cov-stub,
pytest-mock,
@@ -14,6 +14,7 @@
pythonAtLeast,
pythonOlder,
redis,
+ redisTestHook,
setuptools,
}:
@@ -42,10 +43,12 @@ buildPythonPackage rec {
nativeCheckInputs = [
aiohttp
marshmallow
+ memcachedTestHook
pytest-asyncio
pytest-cov-stub
pytest-mock
pytestCheckHook
+ redisTestHook
] ++ lib.flatten (lib.attrValues optional-dependencies);
pytestFlagsArray = [
@@ -70,19 +73,6 @@ buildPythonPackage rec {
"tests/performance/"
];
- preCheck = ''
- ${lib.getBin pkgs.valkey}/bin/redis-server &
- REDIS_PID=$!
-
- ${lib.getBin pkgs.memcached}/bin/memcached &
- MEMCACHED_PID=$!
- '';
-
- postCheck = ''
- kill $REDIS_PID
- kill $MEMCACHED_PID
- '';
-
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "aiocache" ];