All of lore.kernel.org
 help / color / mirror / Atom feed
From: arnomessiaen@gmail.com
To: buildroot@buildroot.org
Cc: James Hilliard <james.hilliard1@gmail.com>,
	Arno Messiaen <arnomessiaen@gmail.com>,
	Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	Asaf Kahlon <asafka7@gmail.com>
Subject: [Buildroot] [PATCH 1/1] package/python-aiohttp-sse-client: new package
Date: Wed, 10 Jan 2024 17:37:26 +0100	[thread overview]
Message-ID: <20240110163726.447025-1-arnomessiaen@gmail.com> (raw)

From: Arno Messiaen <arnomessiaen@gmail.com>

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>
---
 DEVELOPERS                                    |  3 ++
 package/Config.in                             |  1 +
 ....py-remove-pytest-runner-requirement.patch | 37 +++++++++++++++++++
 package/python-aiohttp-sse-client/Config.in   |  7 ++++
 .../python-aiohttp-sse-client.hash            |  5 +++
 .../python-aiohttp-sse-client.mk              | 14 +++++++
 6 files changed, 67 insertions(+)
 create mode 100644 package/python-aiohttp-sse-client/0001-setup.py-remove-pytest-runner-requirement.patch
 create mode 100644 package/python-aiohttp-sse-client/Config.in
 create mode 100644 package/python-aiohttp-sse-client/python-aiohttp-sse-client.hash
 create mode 100644 package/python-aiohttp-sse-client/python-aiohttp-sse-client.mk

diff --git a/DEVELOPERS b/DEVELOPERS
index d7543247f2..ebdf8eb892 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -257,6 +257,9 @@ F:	package/mali-t76x/
 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/
diff --git a/package/Config.in b/package/Config.in
index f5d0c06334..2302188fe5 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -971,6 +971,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"
diff --git a/package/python-aiohttp-sse-client/0001-setup.py-remove-pytest-runner-requirement.patch b/package/python-aiohttp-sse-client/0001-setup.py-remove-pytest-runner-requirement.patch
new file mode 100644
index 0000000000..96289797f1
--- /dev/null
+++ b/package/python-aiohttp-sse-client/0001-setup.py-remove-pytest-runner-requirement.patch
@@ -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
+
+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
+
diff --git a/package/python-aiohttp-sse-client/Config.in b/package/python-aiohttp-sse-client/Config.in
new file mode 100644
index 0000000000..a4f6a14060
--- /dev/null
+++ b/package/python-aiohttp-sse-client/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_PYTHON_AIOHTTP_SSE_CLIENT
+	bool "python-aiohttp-sse-client"
+	select BR2_PACKAGE_PYTHON_AIOHTTP # runtime
+	help
+	  Server-sent events client support for aiohttp.
+
+	  https://github.com/rtfol/aiohttp-sse-client
diff --git a/package/python-aiohttp-sse-client/python-aiohttp-sse-client.hash b/package/python-aiohttp-sse-client/python-aiohttp-sse-client.hash
new file mode 100644
index 0000000000..5a1d240777
--- /dev/null
+++ b/package/python-aiohttp-sse-client/python-aiohttp-sse-client.hash
@@ -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
diff --git a/package/python-aiohttp-sse-client/python-aiohttp-sse-client.mk b/package/python-aiohttp-sse-client/python-aiohttp-sse-client.mk
new file mode 100644
index 0000000000..4feae517ae
--- /dev/null
+++ b/package/python-aiohttp-sse-client/python-aiohttp-sse-client.mk
@@ -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))
-- 
2.40.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

             reply	other threads:[~2024-01-10 16:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-10 16:37 arnomessiaen [this message]
2025-02-05 12:05 ` [Buildroot] [PATCH 1/1] package/python-aiohttp-sse-client: new package Thomas Petazzoni via buildroot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240110163726.447025-1-arnomessiaen@gmail.com \
    --to=arnomessiaen@gmail.com \
    --cc=asafka7@gmail.com \
    --cc=buildroot@buildroot.org \
    --cc=james.hilliard1@gmail.com \
    --cc=thomas.petazzoni@bootlin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.