From 9d5a1d2aa12db85a8ab55d2143258944a3474bb8 Mon Sep 17 00:00:00 2001 From: Greg Laabs Date: Thu, 18 Apr 2019 10:14:22 -0700 Subject: [PATCH] Swap to SleekXMPP-FS, a fork built specifically for sucks This fork of SleekXMPP disables certificate validation to work around #62 and #45 This fix should be seen as a temporary hack until we figure out a long term solution. --- setup.py | 2 +- sucks/__init__.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 3fbe013..1d3e458 100644 --- a/setup.py +++ b/setup.py @@ -63,7 +63,7 @@ setup( # https://packaging.python.org/en/latest/requirements.html install_requires=[ - 'sleekxmpp>=1.3', + 'sleekxmppfs>=1.3.4', 'click>=6', 'requests>=2.18', 'pycryptodome>=3.4', diff --git a/sucks/__init__.py b/sucks/__init__.py index 1c01489..65264c6 100644 --- a/sucks/__init__.py +++ b/sucks/__init__.py @@ -7,9 +7,9 @@ from threading import Event import requests import stringcase -from sleekxmpp import ClientXMPP, Callback, MatchXPath -from sleekxmpp.xmlstream import ET -from sleekxmpp.exceptions import XMPPError +from sleekxmppfs import ClientXMPP, Callback, MatchXPath +from sleekxmppfs.xmlstream import ET +from sleekxmppfs.exceptions import XMPPError _LOGGER = logging.getLogger(__name__)