summary refs log tree commit diff
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2023-03-30 16:57:25 +0200
committerGitHub <noreply@github.com>2023-03-30 16:57:25 +0200
commit2bd591fac81958a7d73baa46a56aaa74edd279f7 (patch)
tree16756fbd1dd31550dac9f1cd827031e2e5670438
parentb97ea5900b3ee465eba3811f75f8b36d552184f5 (diff)
parent68345e8e571e11036a7dc62bb499b2a46004b479 (diff)
downloadnixpkgs-2bd591fac81958a7d73baa46a56aaa74edd279f7.tar
nixpkgs-2bd591fac81958a7d73baa46a56aaa74edd279f7.tar.gz
nixpkgs-2bd591fac81958a7d73baa46a56aaa74edd279f7.tar.bz2
nixpkgs-2bd591fac81958a7d73baa46a56aaa74edd279f7.tar.lz
nixpkgs-2bd591fac81958a7d73baa46a56aaa74edd279f7.tar.xz
nixpkgs-2bd591fac81958a7d73baa46a56aaa74edd279f7.tar.zst
nixpkgs-2bd591fac81958a7d73baa46a56aaa74edd279f7.zip
Merge pull request #223296 from SuperSandro2000/asyncpg
python310Packages.asyncpg: use pytestCheckHook
-rw-r--r--pkgs/development/python-modules/asyncpg/default.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/asyncpg/default.nix b/pkgs/development/python-modules/asyncpg/default.nix
index f996182f847..71e20a6d5f7 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