Unverified Commit 2bd591fa authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

Merge pull request #223296 from SuperSandro2000/asyncpg

python310Packages.asyncpg: use pytestCheckHook
parents b97ea590 68345e8e
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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