package/python-aiohttp-sse-client: new package

This patch adds the python-aiohttp-sse-client package to buildroot.
This package adds SSE client support to the aiohttp library, as
opposed to the already exising python-aiohttp-sse package, which
only adds sse server support.

Signed-off-by: Arno Messiaen <arnomessiaen@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Arno Messiaen
2024-01-10 17:37:26 +01:00
committed by Thomas Petazzoni
parent f2a862fe60
commit 38090cdbb6
6 changed files with 70 additions and 0 deletions

View File

@@ -275,6 +275,9 @@ F: configs/snps_archs38_hsdk_defconfig
N: Arnaud Aujon <arnaud@intelibre.fr>
F: package/espeak/
N: Arno Messiaen <arnomessiaen@gmail.com>
F: package/python-aiohttp-sse-client/
N: Arnout Vandecappelle <arnout@mind.be>
F: package/arp-scan/
F: package/dehydrated/

View File

@@ -982,6 +982,7 @@ menu "External python modules"
source "package/python-aiohttp-security/Config.in"
source "package/python-aiohttp-session/Config.in"
source "package/python-aiohttp-sse/Config.in"
source "package/python-aiohttp-sse-client/Config.in"
source "package/python-aiojobs/Config.in"
source "package/python-aiologstash/Config.in"
source "package/python-aiomonitor/Config.in"

View File

@@ -0,0 +1,37 @@
From fdba1f12843d0fdbd5094144a8081244b71b2cf0 Mon Sep 17 00:00:00 2001
From: Arno Messiaen <arnomessiaen@gmail.com>
Date: Wed, 22 Nov 2023 08:12:08 +0100
Subject: [PATCH] setup.py: remove pytest-runner requirement
setup.py: pytest-runner is not required to install the package
Upstream: N/A, Buildroot packaging related
Signed-off-by: Arno Messiaen <arnomessiaen@gmail.com>
---
setup.py | 3 ---
1 file changed, 3 deletions(-)
diff --git a/setup.py b/setup.py
index 062bb08..f19bc0a 100644
--- a/setup.py
+++ b/setup.py
@@ -13,8 +13,6 @@ with open('HISTORY.rst') as history_file:
requirements = ['aiohttp>=3', 'attrs', 'multidict', 'yarl', ]
-setup_requirements = ['pytest-runner', ]
-
test_requirements = ['pytest', ]
setup(
@@ -41,7 +39,6 @@ setup(
keywords='aiohttp_sse_client',
name='aiohttp-sse-client',
packages=find_packages(include=['aiohttp_sse_client']),
- setup_requires=setup_requirements,
test_suite='tests',
tests_require=test_requirements,
url='https://github.com/rtfol/aiohttp-sse-client',
--
2.40.1

View File

@@ -0,0 +1,10 @@
config BR2_PACKAGE_PYTHON_AIOHTTP_SSE_CLIENT
bool "python-aiohttp-sse-client"
select BR2_PACKAGE_PYTHON_AIOHTTP # runtime
select BR2_PACKAGE_PYTHON_ATTRS # runtime
select BR2_PACKAGE_PYTHON_MULTIDICT # runtime
select BR2_PACKAGE_PYTHON_YARL # runtime
help
Server-sent events client support for aiohttp.
https://github.com/rtfol/aiohttp-sse-client

View File

@@ -0,0 +1,5 @@
# md5, sha256 from https://pypi.org/pypi/aiohttp-sse-client/json
md5 d9065bf151fbb485a175ae453a9a5f9f aiohttp-sse-client-0.2.1.tar.gz
sha256 5004e29271624af586158dc7166cb0687a7a5997aab5b808f4b53400e1b72e3b aiohttp-sse-client-0.2.1.tar.gz
# Locally computed sha256 checksums
sha256 44c346abc42b39f1390e4747adfd60a3ca349e01462965e5750ae531299b8ff1 LICENSE

View File

@@ -0,0 +1,14 @@
################################################################################
#
# python-aiohttp-sse-client
#
################################################################################
PYTHON_AIOHTTP_SSE_CLIENT_VERSION = 0.2.1
PYTHON_AIOHTTP_SSE_CLIENT_SOURCE = aiohttp-sse-client-$(PYTHON_AIOHTTP_SSE_CLIENT_VERSION).tar.gz
PYTHON_AIOHTTP_SSE_CLIENT_SITE = https://files.pythonhosted.org/packages/71/c3/4825c5f37909a70c8018924b3d521847dd7acf1fce7e1054574bafed2271
PYTHON_AIOHTTP_SSE_CLIENT_SETUP_TYPE = setuptools
PYTHON_AIOHTTP_SSE_CLIENT_LICENSE = Apache-2.0
PYTHON_AIOHTTP_SSE_CLIENT_LICENSE_FILES = LICENSE
$(eval $(python-package))