mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
python312Packages.sse-starlette: init at 2.0.0
Server Sent Events for Starlette and FastAPI https://github.com/sysid/sse-starlette
This commit is contained in:
parent
e9fc5be0c7
commit
e21763ec29
67
pkgs/development/python-modules/sse-starlette/default.nix
Normal file
67
pkgs/development/python-modules/sse-starlette/default.nix
Normal file
|
@ -0,0 +1,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 ];
|
||||
};
|
||||
}
|
|
@ -14216,6 +14216,8 @@ self: super: with self; {
|
|||
|
||||
sseclient-py = callPackage ../development/python-modules/sseclient-py { };
|
||||
|
||||
sse-starlette = callPackage ../development/python-modules/sse-starlette { };
|
||||
|
||||
sshfs = callPackage ../development/python-modules/sshfs { };
|
||||
|
||||
sshpubkeys = callPackage ../development/python-modules/sshpubkeys { };
|
||||
|
|
Loading…
Reference in a new issue