nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, fetchPypi
3, buildPythonPackage
4, uvloop
5, postgresql
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "asyncpg";
11 version = "0.25.0";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.6";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-Y/jmppczsoVJfChVRko03mV/LMzSWurutQcYcuk4JUA=";
19 };
20
21 checkInputs = [
22 uvloop
23 postgresql
24 ];
25
26 pythonImportsCheck = [
27 "asyncpg"
28 ];
29
30 meta = with lib; {
31 description = "Asyncio PosgtreSQL driver";
32 homepage = "https://github.com/MagicStack/asyncpg";
33 longDescription = ''
34 Asyncpg is a database interface library designed specifically for
35 PostgreSQL and Python/asyncio. asyncpg is an efficient, clean
36 implementation of PostgreSQL server binary protocol for use with Python's
37 asyncio framework.
38 '';
39 license = licenses.asl20;
40 maintainers = with maintainers; [ eadwu ];
41 };
42}