On 2021-04-27 10:00 a.m., Bartosz Golaszewski wrote:
[Please note: This e-mail is from an EXTERNAL e-mail address]

This adds twisted python support for SockJS.

Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl>
---
  .../0001-setup-fix-syntax-error.patch         | 27 +++++++++++++++++++
  .../python/python3-txsockjs_1.2.2.bb          | 15 +++++++++++
  2 files changed, 42 insertions(+)
  create mode 100644 
meta-python/recipes-devtools/python/python3-txsockjs/0001-setup-fix-syntax-error.patch
  create mode 100644 
meta-python/recipes-devtools/python/python3-txsockjs_1.2.2.bb

diff --git 
a/meta-python/recipes-devtools/python/python3-txsockjs/0001-setup-fix-syntax-error.patch
 
b/meta-python/recipes-devtools/python/python3-txsockjs/0001-setup-fix-syntax-error.patch
new file mode 100644
index 000000000..f5de64221
--- /dev/null
+++ 
b/meta-python/recipes-devtools/python/python3-txsockjs/0001-setup-fix-syntax-error.patch
@@ -0,0 +1,27 @@
+From 7b6323f467dc4f2ff4421350ac5fbf3a73c66764 Mon Sep 17 00:00:00 2001
+From: Bartosz Golaszewski <b...@bgdev.pl>
+Date: Tue, 27 Apr 2021 14:20:41 +0200
+Subject: [PATCH] setup: fix syntax error
+
+Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl>
+---
+Upstream-Status: Inappropriate [Project's github has been removed :(]

I'm hesitant to add a recipe for a module whose official repository may have been deleted. I do see the DesertBus/sockjs-twisted repo, but it hasn't been updated in several years. Do you know if any of the forks are actually being maintained?

- Trevor

+
+ setup.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index d67320e..13ac3c5 100644
+--- a/setup.py
++++ b/setup.py
+@@ -70,6 +70,6 @@ setup(
+ try:

+     from twisted.plugin import IPlugin, getPlugins

+     list(getPlugins(IPlugin))

+-except Exception, e:

++except Exception as e:

+     log.warn("*** Failed to update Twisted plugin cache. ***")

+     log.warn(str(e))

+--
+2.25.1
+
diff --git a/meta-python/recipes-devtools/python/python3-txsockjs_1.2.2.bb 
b/meta-python/recipes-devtools/python/python3-txsockjs_1.2.2.bb
new file mode 100644
index 000000000..e5a86e013
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-txsockjs_1.2.2.bb
@@ -0,0 +1,15 @@
+SUMMARY = "A simple library for adding SockJS support to your twisted 
application."
+AUTHOR = "Christopher Gamble"
+HOMEPAGE = "https://pypi.org/project/txsockjs/";
+SECTION = "devel/python"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=c62063068876fa826aa4fb6db49fdf7a"
+
+SRC_URI += "file://0001-setup-fix-syntax-error.patch"
+
+SRC_URI[md5sum] = "fcdd3f68021abc6034223b5b36f43128"
+SRC_URI[sha256sum] = 
"759f5571e276e70c1ad20919d27cf2e8eef8751594892bd107d6e88dce4a5db9"
+
+inherit pypi setuptools3
+
+RDEPENDS_${PN} += "python3-twisted"
--
2.30.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#91085): 
https://lists.openembedded.org/g/openembedded-devel/message/91085
Mute This Topic: https://lists.openembedded.org/mt/82404387/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to