1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 httpx, 6 pytest-asyncio, 7 pytest-cov-stub, 8 pytestCheckHook, 9 setuptools-scm, 10 setuptools, 11 sse-starlette, 12}: 13 14buildPythonPackage rec { 15 pname = "httpx-sse"; 16 version = "0.4.1"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "florimondmanca"; 21 repo = "httpx-sse"; 22 tag = version; 23 hash = "sha256-bSozSZmbRU5sc3jvVUOAXQWVBA8GhzM2R26uPdabS+w="; 24 }; 25 26 build-system = [ 27 setuptools 28 setuptools-scm 29 ]; 30 31 dependencies = [ httpx ]; 32 33 pythonImportsCheck = [ "httpx_sse" ]; 34 35 nativeCheckInputs = [ 36 pytest-asyncio 37 pytest-cov-stub 38 pytestCheckHook 39 sse-starlette 40 ]; 41 42 meta = with lib; { 43 description = "Consume Server-Sent Event (SSE) messages with HTTPX"; 44 homepage = "https://github.com/florimondmanca/httpx-sse"; 45 changelog = "https://github.com/florimondmanca/httpx-sse/blob/${src.rev}/CHANGELOG.md"; 46 license = licenses.mit; 47 maintainers = with maintainers; [ natsukium ]; 48 }; 49}