diff --git a/pkgs/development/python-modules/asyncpg/default.nix b/pkgs/development/python-modules/asyncpg/default.nix index f996182f8479..d40ea0178cdc 100644 --- a/pkgs/development/python-modules/asyncpg/default.nix +++ b/pkgs/development/python-modules/asyncpg/default.nix @@ -4,6 +4,8 @@ , uvloop , postgresql , pythonOlder +, pytest-xdist +, pytestCheckHook }: buildPythonPackage rec { @@ -24,8 +26,14 @@ buildPythonPackage rec { nativeCheckInputs = [ uvloop postgresql + pytest-xdist + pytestCheckHook ]; + preCheck = '' + rm -rf asyncpg/ + ''; + pythonImportsCheck = [ "asyncpg" ];