mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-25 01:11:05 +08:00
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
46 lines
1.0 KiB
Nix
46 lines
1.0 KiB
Nix
{ lib
|
|
, fetchPypi
|
|
, buildPythonPackage
|
|
, uvloop
|
|
, postgresql
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "asyncpg";
|
|
version = "0.27.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-cgmG2aRwXdikD98XIDb1rnhyJQNqfrRucExFqo9iwFQ=";
|
|
};
|
|
|
|
# sandboxing issues on aarch64-darwin, see https://github.com/NixOS/nixpkgs/issues/198495
|
|
doCheck = postgresql.doCheck;
|
|
|
|
nativeCheckInputs = [
|
|
uvloop
|
|
postgresql
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"asyncpg"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Asyncio PosgtreSQL driver";
|
|
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
|
|
implementation of PostgreSQL server binary protocol for use with Python's
|
|
asyncio framework.
|
|
'';
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ eadwu ];
|
|
};
|
|
}
|