[packages/python3-eventlet] - updated to 0.40.4, added workaround for dnspython using httpcore->trio
qboosh
qboosh at pld-linux.org
Sat Mar 14 12:58:06 CET 2026
commit 8482c3948fedc811c9f98bbf1a4e2933769674d9
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Mar 14 12:58:16 2026 +0100
- updated to 0.40.4, added workaround for dnspython using httpcore->trio
eventlet-dns-no-doh.patch | 12 ++++++++++++
python3-eventlet.spec | 10 ++++++----
2 files changed, 18 insertions(+), 4 deletions(-)
---
diff --git a/python3-eventlet.spec b/python3-eventlet.spec
index 60bddd0..5438710 100644
--- a/python3-eventlet.spec
+++ b/python3-eventlet.spec
@@ -6,13 +6,14 @@
Summary: Highly concurrent networking library for Python 2
Summary(pl.UTF-8): Biblioteka sieciowa o dużym stopniu zrównoleglenia dla Pythona 2
Name: python3-eventlet
-Version: 0.40.1
+Version: 0.40.4
Release: 1
License: MIT
Group: Development/Languages/Python
#Source0Download: https://pypi.org/simple/eventlet/
Source0: https://files.pythonhosted.org/packages/source/e/eventlet/eventlet-%{version}.tar.gz
-# Source0-md5: 871eaf342f49e153ed75d489a1e4e1c5
+# Source0-md5: 42dfea2c67f3ac9b514e08f939266135
+Patch0: eventlet-dns-no-doh.patch
URL: https://pypi.org/project/eventlet/
BuildRequires: python3-devel >= 1:3.9
BuildRequires: python3-build
@@ -75,6 +76,7 @@ Dokumentacja API modułu eventlet.
%prep
%setup -q -n eventlet-%{version}
+%patch -P0 -p1
# uses network
%{__rm} tests/greendns_test.py
@@ -92,7 +94,7 @@ PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
%if %{with doc}
PYTHONPATH=$(pwd) \
-sphinx-build-3 -b html doc/source doc/source/_build/html
+sphinx-build-3 -b html doc/source doc/_build/html
%endif
%install
@@ -112,5 +114,5 @@ rm -rf $RPM_BUILD_ROOT
%if %{with doc}
%files apidocs
%defattr(644,root,root,755)
-%doc doc/source/_build/html/{_images,_static,modules,*.html,*.js}
+%doc doc/_build/html/{_images,_static,modules,*.html,*.js}
%endif
diff --git a/eventlet-dns-no-doh.patch b/eventlet-dns-no-doh.patch
new file mode 100644
index 0000000..2e224e6
--- /dev/null
+++ b/eventlet-dns-no-doh.patch
@@ -0,0 +1,12 @@
+--- eventlet-0.40.4/eventlet/support/greendns.py.orig 2020-02-02 01:00:00.000000000 +0100
++++ eventlet-0.40.4/eventlet/support/greendns.py 2026-03-14 10:05:56.485851475 +0100
+@@ -61,6 +61,9 @@ def import_patched(module_name):
+
+
+ dns = import_patched('dns')
++# DNS doh relies on httpcore, which uses trio, incompatible with eventlet
++import dns._features as feat
++feat.force("doh", False)
+
+ # Handle rdtypes separately; we need fully it available as we patch the rest
+ dns.rdtypes = import_patched('dns.rdtypes')
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-eventlet.git/commitdiff/8482c3948fedc811c9f98bbf1a4e2933769674d9
More information about the pld-cvs-commit
mailing list