1{ lib, isPy3k, fetchPypi, buildPythonPackage 2, uvloop, postgresql }: 3 4buildPythonPackage rec { 5 pname = "asyncpg"; 6 version = "0.24.0"; 7 disabled = !isPy3k; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "sha256-3S+gY8M0SCNIfZ3cy0CALwJiLd+L+KbMU4he56LBwMY="; 12 }; 13 14 checkInputs = [ 15 uvloop 16 postgresql 17 ]; 18 19 pythonImportsCheck = [ "asyncpg" ]; 20 21 meta = with lib; { 22 homepage = "https://github.com/MagicStack/asyncpg"; 23 description = "An asyncio PosgtreSQL driver"; 24 longDescription = '' 25 Asyncpg is a database interface library designed specifically for 26 PostgreSQL and Python/asyncio. asyncpg is an efficient, clean 27 implementation of PostgreSQL server binary protocol for use with Pythons 28 asyncio framework. 29 ''; 30 license = licenses.asl20; 31 maintainers = with maintainers; [ eadwu ]; 32 }; 33}