Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 33 lines 875 B view raw
1{ lib, isPy3k, fetchPypi, buildPythonPackage 2, uvloop, postgresql }: 3 4buildPythonPackage rec { 5 pname = "asyncpg"; 6 version = "0.22.0"; 7 disabled = !isPy3k; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "348ad471d9bdd77f0609a00c860142f47c81c9123f4064d13d65c8569415d802"; 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}