python3Packages.sse-starlette: 2.1.3 -> 2.2.1
https://github.com/sysid/sse-starlette/blob/v2.2.1/CHANGELOG.md
This commit is contained in:
@@ -2,50 +2,63 @@
|
||||
lib,
|
||||
anyio,
|
||||
asgi-lifespan,
|
||||
async-timeout,
|
||||
buildPythonPackage,
|
||||
fastapi,
|
||||
fetchFromGitHub,
|
||||
httpx,
|
||||
pdm-backend,
|
||||
portend,
|
||||
psutil,
|
||||
pytest-asyncio,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
requests,
|
||||
setuptools,
|
||||
starlette,
|
||||
tenacity,
|
||||
testcontainers,
|
||||
uvicorn,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sse-starlette";
|
||||
version = "2.1.3";
|
||||
version = "2.2.1";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sysid";
|
||||
repo = "sse-starlette";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-cnUx3wYawyqt/m/FB6abxknMbc64k09a1kAJoA4yN6w=";
|
||||
hash = "sha256-gBwr4WHJXlh/G3qGbZUPD3pKeX1CI1iTlrI91MVmnJY=";
|
||||
};
|
||||
|
||||
build-system = [ pdm-backend ];
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
anyio
|
||||
starlette
|
||||
uvicorn
|
||||
];
|
||||
|
||||
optional-dependencies = {
|
||||
examples = [ fastapi ];
|
||||
uvicorn = [ uvicorn ];
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
asgi-lifespan
|
||||
async-timeout
|
||||
fastapi
|
||||
httpx
|
||||
portend
|
||||
psutil
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
requests
|
||||
tenacity
|
||||
testcontainers
|
||||
uvicorn
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "sse_starlette" ];
|
||||
@@ -54,12 +67,16 @@ buildPythonPackage rec {
|
||||
# AssertionError
|
||||
"test_stop_server_with_many_consumers"
|
||||
"test_stop_server_conditional"
|
||||
# require network access
|
||||
"test_sse_multiple_consumers"
|
||||
# require docker
|
||||
"test_sse_server_termination"
|
||||
];
|
||||
|
||||
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";
|
||||
changelog = "https://github.com/sysid/sse-starlette/blob/${src.tag}/CHANGELOG.md";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user