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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
{ lib
, anyio
, asgi-lifespan
, buildPythonPackage
, fastapi
, fetchFromGitHub
, httpx
, pdm-backend
, psutil
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, starlette
, uvicorn
}:
buildPythonPackage rec {
pname = "sse-starlette";
version = "2.0.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "sysid";
repo = "sse-starlette";
rev = "refs/tags/v${version}";
hash = "sha256-kDcSG/3foP7fMZKYrkKx6FHvT9c9rSzxyv2EHjQ2WSA=";
};
build-system = [
pdm-backend
];
dependencies = [
anyio
starlette
uvicorn
];
nativeCheckInputs = [
asgi-lifespan
fastapi
httpx
psutil
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [
"sse_starlette"
];
disabledTests = [
# AssertionError
"test_stop_server_with_many_consumers"
"test_stop_server_conditional"
];
meta = with lib; {
description = "Server Sent Events for Starlette and FastAPI";
homepage = "https://github.com/sysid/sse-starlette";
changelog = "https://github.com/sysid/sse-starlette/blob/${version}/CHANGELOG.md";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}
|