2022-02-06 00:59:17 +01:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, uvloop
|
|
|
|
, postgresql
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2019-01-21 11:42:39 -05:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "asyncpg";
|
2022-11-13 17:24:58 -05:00
|
|
|
version = "0.27.0";
|
2022-02-06 00:59:17 +01:00
|
|
|
format = "setuptools";
|
|
|
|
|
2022-11-13 17:24:58 -05:00
|
|
|
disabled = pythonOlder "3.7";
|
2019-01-21 11:42:39 -05:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-11-13 17:24:58 -05:00
|
|
|
hash = "sha256-cgmG2aRwXdikD98XIDb1rnhyJQNqfrRucExFqo9iwFQ=";
|
2019-01-21 11:42:39 -05:00
|
|
|
};
|
|
|
|
|
2022-11-02 17:08:41 +01:00
|
|
|
# sandboxing issues on aarch64-darwin, see https://github.com/NixOS/nixpkgs/issues/198495
|
|
|
|
doCheck = postgresql.doCheck;
|
|
|
|
|
2019-01-21 11:42:39 -05:00
|
|
|
checkInputs = [
|
|
|
|
uvloop
|
|
|
|
postgresql
|
|
|
|
];
|
|
|
|
|
2022-02-06 00:59:17 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"asyncpg"
|
|
|
|
];
|
2021-02-16 22:36:52 +01:00
|
|
|
|
2019-01-21 11:42:39 -05:00
|
|
|
meta = with lib; {
|
2022-02-06 00:59:17 +01:00
|
|
|
description = "Asyncio PosgtreSQL driver";
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://github.com/MagicStack/asyncpg";
|
2019-01-21 11:42:39 -05:00
|
|
|
longDescription = ''
|
|
|
|
Asyncpg is a database interface library designed specifically for
|
|
|
|
PostgreSQL and Python/asyncio. asyncpg is an efficient, clean
|
2022-02-06 00:59:17 +01:00
|
|
|
implementation of PostgreSQL server binary protocol for use with Python's
|
2019-01-21 11:42:39 -05:00
|
|
|
asyncio framework.
|
|
|
|
'';
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ eadwu ];
|
|
|
|
};
|
|
|
|
}
|