1{
2 aiohttp,
3 buildPythonPackage,
4 fetchFromGitHub,
5 lib,
6 pytest-aiohttp,
7 pytest-asyncio_0,
8 pytest-cov-stub,
9 pytestCheckHook,
10 setuptools,
11}:
12
13buildPythonPackage rec {
14 pname = "aiohttp-sse";
15 version = "2.2.0";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "aio-libs";
20 repo = "aiohttp-sse";
21 tag = "v${version}";
22 hash = "sha256-iCjWuECUQukCtlQPjztEwawqSzd3LvvWRGXnhZem22w=";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [
28 aiohttp
29 ];
30
31 pythonImportsCheck = [ "aiohttp_sse" ];
32
33 nativeCheckInputs = [
34 (pytest-aiohttp.override { pytest-asyncio = pytest-asyncio_0; })
35 pytest-asyncio_0
36 pytest-cov-stub
37 pytestCheckHook
38 ];
39
40 __darwinAllowLocalNetworking = true;
41
42 meta = {
43 changelog = "https://github.com/aio-libs/aiohttp-sse/blob/${src.tag}/CHANGES.rst";
44 description = "Server-sent events support for aiohttp";
45 homepage = "https://github.com/aio-libs/aiohttp-sse";
46 license = lib.licenses.asl20;
47 maintainers = with lib.maintainers; [ dotlambda ];
48 };
49}