diff --git a/pkgs/development/python-modules/asyncpg/default.nix b/pkgs/development/python-modules/asyncpg/default.nix index f996182f8479..71e20a6d5f79 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" ]; @@ -33,6 +41,7 @@ buildPythonPackage rec { meta = with lib; { description = "Asyncio PosgtreSQL driver"; homepage = "https://github.com/MagicStack/asyncpg"; + changelog = "https://github.com/MagicStack/asyncpg/releases/tag/v${version}"; longDescription = '' Asyncpg is a database interface library designed specifically for PostgreSQL and Python/asyncio. asyncpg is an efficient, clean