blob: e6ebf80bfbe5923d0bba9ac09825255ec35e0bdc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{
lib,
aiohttp,
buildPythonPackage,
fastapi,
fetchFromGitHub,
pdm-backend,
pytest-asyncio,
pytestCheckHook,
python-multipart,
}:
buildPythonPackage (finalAttrs: {
pname = "aiohttp-asgi-connector";
version = "1.1.2";
pyproject = true;
src = fetchFromGitHub {
owner = "thearchitector";
repo = "aiohttp-asgi-connector";
tag = "v${finalAttrs.version}";
hash = "sha256-kvHsn8avq0Fi4ceg3ispFoQp0HJKzBv4tgley7XWMrY=";
};
build-system = [ pdm-backend ];
dependencies = [ aiohttp ];
nativeCheckInputs = [
fastapi
pytest-asyncio
pytestCheckHook
python-multipart
];
pythonImportsCheck = [ "aiohttp_asgi_connector" ];
meta = {
description = "An AIOHTTP ClientSession connector for directly interacting with ASGI applications";
homepage = "https://github.com/thearchitector/aiohttp-asgi-connector";
changelog = "https://github.com/thearchitector/aiohttp-asgi-connector/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fab ];
};
})
|