Something went wrong. Try again.
lol
Something went wrong. Try again.
1.5 kB · 67 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768{ lib, fetchPypi, buildPythonPackage, cython, libpq, uvloop, postgresql, pytest-xdist, pytest8_3CheckHook, setuptools, distro,}:
buildPythonPackage rec { pname = "asyncpg"; version = "0.31.0"; pyproject = true;
src = fetchPypi { inherit pname version; hash = "sha256-yYk4bIOUC/vXhxgPKxUZQV4tPWJ3pw2dDwFFrHNQBzU="; };
build-system = [ cython setuptools ];
nativeCheckInputs = [ libpq.pg_config uvloop postgresql postgresql.pg_config pytest-xdist pytest8_3CheckHook distro ];
# sandboxing issues on aarch64-darwin, see https://github.com/NixOS/nixpkgs/issues/198495 doCheck = postgresql.doInstallCheck;
preCheck = '' rm -rf asyncpg/
export PGBIN=${lib.getBin postgresql}/bin '';
# https://github.com/MagicStack/asyncpg/issues/1236 disabledTests = [ "test_connect_params" ];
pythonImportsCheck = [ "asyncpg" ];
meta = { 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 implementation of PostgreSQL server binary protocol for use with Python's asyncio framework. ''; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ eadwu ]; };}