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 1/2] 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" ]; From 68345e8e571e11036a7dc62bb499b2a46004b479 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 27 Mar 2023 08:52:51 +0200 Subject: [PATCH 2/2] python310Packages.asyncpg: add changelog to meta --- pkgs/development/python-modules/asyncpg/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/python-modules/asyncpg/default.nix b/pkgs/development/python-modules/asyncpg/default.nix index d40ea0178cdc..71e20a6d5f79 100644 --- a/pkgs/development/python-modules/asyncpg/default.nix +++ b/pkgs/development/python-modules/asyncpg/default.nix @@ -41,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