{ lib, buildPythonPackage, fetchFromGitHub, httpx, pytest-asyncio, pytest-cov-stub, pytestCheckHook, setuptools-scm, setuptools, sse-starlette, starlette, }: buildPythonPackage rec { pname = "httpx-sse"; version = "0.4.3"; pyproject = true; src = fetchFromGitHub { owner = "florimondmanca"; repo = "httpx-sse"; tag = version; hash = "sha256-6DPbfJlbLmws9GkQ2zePGp4g0at4M32vrIDtmUPDkX4="; }; build-system = [ setuptools setuptools-scm ]; dependencies = [ httpx ]; pythonImportsCheck = [ "httpx_sse" ]; nativeCheckInputs = [ pytest-asyncio pytest-cov-stub pytestCheckHook sse-starlette starlette ]; meta = { description = "Consume Server-Sent Event (SSE) messages with HTTPX"; homepage = "https://github.com/florimondmanca/httpx-sse"; changelog = "https://github.com/florimondmanca/httpx-sse/blob/${src.rev}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ natsukium ]; }; }