Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 38 lines 1.1 kB view raw
1{ lib, isPy3k, fetchPypi, fetchpatch, buildPythonPackage 2, uvloop, postgresql }: 3 4buildPythonPackage rec { 5 pname = "asyncpg"; 6 version = "0.18.3"; 7 disabled = !isPy3k; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "0rrch478ww6ipmh3617sb2jzwsq4w7pjcck869p35zb0mk5fr9aq"; 12 }; 13 14 patches = [ 15 (fetchpatch { 16 url = "https://github.com/MagicStack/asyncpg/commit/aaeb7076e5acb045880b46155014c0640624797e.patch"; 17 sha256 = "0l420cmk7469wgb1xq2rxinvja1f2brb5cm4smj2s2wqgymbrf6h"; 18 }) 19 ]; 20 21 checkInputs = [ 22 uvloop 23 postgresql 24 ]; 25 26 meta = with lib; { 27 homepage = https://github.com/MagicStack/asyncpg; 28 description = "An asyncio PosgtreSQL driver"; 29 longDescription = '' 30 Asyncpg is a database interface library designed specifically for 31 PostgreSQL and Python/asyncio. asyncpg is an efficient, clean 32 implementation of PostgreSQL server binary protocol for use with Pythons 33 asyncio framework. 34 ''; 35 license = licenses.asl20; 36 maintainers = with maintainers; [ eadwu ]; 37 }; 38}