2022-02-10 20:34:41 +00:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, uvloop
|
|
|
|
, postgresql
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "asyncpg";
|
2021-12-26 17:43:05 +00:00
|
|
|
version = "0.25.0";
|
2022-02-10 20:34:41 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-02-10 20:34:41 +00:00
|
|
|
hash = "sha256-Y/jmppczsoVJfChVRko03mV/LMzSWurutQcYcuk4JUA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
uvloop
|
|
|
|
postgresql
|
|
|
|
];
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"asyncpg"
|
|
|
|
];
|
2021-02-17 17:02:09 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2022-02-10 20:34:41 +00:00
|
|
|
description = "Asyncio PosgtreSQL driver";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/MagicStack/asyncpg";
|
|
|
|
longDescription = ''
|
|
|
|
Asyncpg is a database interface library designed specifically for
|
|
|
|
PostgreSQL and Python/asyncio. asyncpg is an efficient, clean
|
2022-02-10 20:34:41 +00:00
|
|
|
implementation of PostgreSQL server binary protocol for use with Python's
|
2020-04-24 23:36:52 +00:00
|
|
|
asyncio framework.
|
|
|
|
'';
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ eadwu ];
|
|
|
|
};
|
|
|
|
}
|