From 88b3496e49b7b5f327748a58d4ac9c911faf8525 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 27 Jan 2025 12:30:27 -0800 Subject: [PATCH] python313Packages.aiohttp-sse: init at 2.2.0 --- .../python-modules/aiohttp-sse/default.nix | 49 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 51 insertions(+) create mode 100644 pkgs/development/python-modules/aiohttp-sse/default.nix diff --git a/pkgs/development/python-modules/aiohttp-sse/default.nix b/pkgs/development/python-modules/aiohttp-sse/default.nix new file mode 100644 index 000000000000..851f0fef08cb --- /dev/null +++ b/pkgs/development/python-modules/aiohttp-sse/default.nix @@ -0,0 +1,49 @@ +{ + aiohttp, + buildPythonPackage, + fetchFromGitHub, + lib, + pytest-aiohttp, + pytest-asyncio, + pytest-cov-stub, + pytestCheckHook, + setuptools, +}: + +buildPythonPackage rec { + pname = "aiohttp-sse"; + version = "2.2.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "aio-libs"; + repo = "aiohttp-sse"; + tag = "v${version}"; + hash = "sha256-iCjWuECUQukCtlQPjztEwawqSzd3LvvWRGXnhZem22w="; + }; + + build-system = [ setuptools ]; + + dependencies = [ + aiohttp + ]; + + pythonImportsCheck = [ "aiohttp_sse" ]; + + nativeCheckInputs = [ + pytest-aiohttp + pytest-asyncio + pytest-cov-stub + pytestCheckHook + ]; + + __darwinAllowLocalNetworking = true; + + meta = { + changelog = "https://github.com/aio-libs/aiohttp-sse/blob/${src.tag}/CHANGES.rst"; + description = "Server-sent events support for aiohttp"; + homepage = "https://github.com/aio-libs/aiohttp-sse"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3ef71be85705..92903e668f76 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -283,6 +283,8 @@ self: super: with self; { aiohttp-socks = callPackage ../development/python-modules/aiohttp-socks { }; + aiohttp-sse = callPackage ../development/python-modules/aiohttp-sse { }; + aiohttp-sse-client2 = callPackage ../development/python-modules/aiohttp-sse-client2 { }; aiohttp-swagger = callPackage ../development/python-modules/aiohttp-swagger { };