From e4277a6cf1bd8255fd3fb6f2898a4449061fd31c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 26 Mar 2023 22:27:38 +0200 Subject: [PATCH] python310Packages.asyncpg: use pytestCheckHook --- pkgs/development/python-modules/asyncpg/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) 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" ];