12 buildPythonPackage rec {
15 format = "setuptools";
17 disabled = pythonOlder "3.8";
20 inherit pname version;
21 hash = "sha256-0cSeH0T/+v2aVeGpsQFZCFnYgdY56ikiUW9dnFEtNU4=";
24 # sandboxing issues on aarch64-darwin, see https://github.com/NixOS/nixpkgs/issues/198495
25 doCheck = postgresql.doCheck;
27 # required for compatibility with Python versions older than 3.11
28 # see https://github.com/MagicStack/asyncpg/blob/v0.29.0/asyncpg/_asyncio_compat.py#L13
29 propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [
44 pythonImportsCheck = [
49 description = "Asyncio PosgtreSQL driver";
50 homepage = "https://github.com/MagicStack/asyncpg";
51 changelog = "https://github.com/MagicStack/asyncpg/releases/tag/v${version}";
53 Asyncpg is a database interface library designed specifically for
54 PostgreSQL and Python/asyncio. asyncpg is an efficient, clean
55 implementation of PostgreSQL server binary protocol for use with Python's
58 license = licenses.asl20;
59 maintainers = with maintainers; [ eadwu ];