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";
|
2022-11-21 17:40:18 +00:00
|
|
|
version = "0.27.0";
|
2022-02-10 20:34:41 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-11-21 17:40:18 +00:00
|
|
|
hash = "sha256-cgmG2aRwXdikD98XIDb1rnhyJQNqfrRucExFqo9iwFQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-11-04 12:27:35 +00:00
|
|
|
# sandboxing issues on aarch64-darwin, see https://github.com/NixOS/nixpkgs/issues/198495
|
|
|
|
doCheck = postgresql.doCheck;
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|