14
0

Accepting request 1151993 from devel:languages:python

- Update to 1.8.5:
  * Fix connection to Snikket instances (pep., mathieui)
  * Performance fix for XEP-0115 queries
  * New documentation listing projects using slixmpp (genghis)
  * Bugfix and improvements (nicoco, mostly)
- Switch to autosetup and pyproject macros.
- Drop patch slixmpp-fix-legacyauth.patch, no longer required.
- Update Source URL.

OBS-URL: https://build.opensuse.org/request/show/1151993
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-slixmpp?expand=0&rev=11
This commit is contained in:
2024-02-27 21:48:05 +00:00
committed by Git OBS Bridge
5 changed files with 34 additions and 31 deletions

View File

@@ -1,3 +1,15 @@
-------------------------------------------------------------------
Tue Feb 27 03:29:02 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 1.8.5:
* Fix connection to Snikket instances (pep., mathieui)
* Performance fix for XEP-0115 queries
* New documentation listing projects using slixmpp (genghis)
* Bugfix and improvements (nicoco, mostly)
- Switch to autosetup and pyproject macros.
- Drop patch slixmpp-fix-legacyauth.patch, no longer required.
- Update Source URL.
-------------------------------------------------------------------
Tue Dec 6 15:35:51 UTC 2022 - Michael Vetter <mvetter@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-slixmpp
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,29 +16,32 @@
#
%define skip_python2 1
%define skip_python36 1
%define _name slixmpp
Name: python-slixmpp
Version: 1.8.3
Version: 1.8.5
Release: 0
Summary: Python XMPP (Jabber) Library that Implements Everything as a Plugin
License: MIT
URL: https://slixmpp.readthedocs.io/
Source: https://lab.louiz.org/poezio/slixmpp/-/archive/slix-%{version}/slixmpp-slix-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE slixmpp-fix-legacyauth.patch nyov@nexnode.net -- Fix an error in legacyauth support.
Patch0: %{_name}-fix-legacyauth.patch
Source: https://codeberg.org/poezio/slixmpp/archive/slix-%{version}.tar.gz
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module aiodns}
BuildRequires: %{python_module aiohttp}
BuildRequires: %{python_module cryptography}
BuildRequires: %{python_module devel >= 3.7}
BuildRequires: %{python_module dnspython}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: %{python_module xml}
BuildRequires: fdupes
BuildRequires: gnupg
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(libidn)
Requires: python-aiodns
Requires: python-aiohttp
Requires: python-dnspython
Requires: python-cryptography
Requires: python-pyasn1
Requires: python-pyasn1-modules
%python_subpackages
%description
@@ -47,24 +50,23 @@ asyncio instead of threads. XEP (XMPP Extended Protocol) coverage is
realized as plugins.
%prep
%setup -q -n %{_name}-slix-%{version}
%patch0 -p1
%autosetup -p1 -n slixmpp
%build
export CFLAGS="%{optflags}"
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}/
%check
%pyunittest -v tests
%python_exec run_tests.py
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitearch}/%{_name}/
%{python_sitearch}/%{_name}-*
%{python_sitearch}/slixmpp
%{python_sitearch}/slixmpp-%{version}.dist-info
%changelog

3
slix-1.8.5.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e7f5c9275879788b6a9163a85281bde924faf871f508d07a0671a4668fb7d75f
size 622476

View File

@@ -1,11 +0,0 @@
--- a/slixmpp/plugins/xep_0078/legacyauth.py
+++ b/slixmpp/plugins/xep_0078/legacyauth.py
@@ -106,7 +106,7 @@ class XEP_0078(BasePlugin):
stream_id = bytes(self.xmpp.stream_id, encoding='utf-8')
password = bytes(self.xmpp.password, encoding='utf-8')
- digest = hashlib.sha1(b'%s%s' % (stream_id, password)).hexdigest()
+ digest = hashlib.sha1('%s%s' % (stream_id, password)).hexdigest()
iq['auth']['digest'] = digest
else:
log.warning('Authenticating via jabber:iq:auth Plain.')

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f30e243ee87ba093befb9f6a5e1b29facab1f512aa8955f1b9c7152fec37053f
size 503002