Merge pull request #223296 from SuperSandro2000/asyncpg

python310Packages.asyncpg: use pytestCheckHook
This commit is contained in:
Sandro
2023-03-30 16:57:25 +02:00
committed by GitHub
@@ -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