From 214c576f62b8fd636f8d203ecb94cb646d65be48 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 17 Jan 2025 23:08:32 +0000 Subject: [PATCH] gnu: python-eventlet: Move to python-web. * gnu/packages/python-xyz.scm (python-eventlet): Move from here ... * gnu/packages/python-web.scm: ... to here. Change-Id: I71beee927f17133267bf0236f075bccf15effe0e --- gnu/packages/python-web.scm | 54 +++++++++++++++++++++++++++++++++++++ gnu/packages/python-xyz.scm | 54 ------------------------------------- 2 files changed, 54 insertions(+), 54 deletions(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index f01843185c..6796e931d4 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -320,6 +320,60 @@ (define-public python-devpi-server caching server.") (license license:expat))) +(define-public python-eventlet + (package + (name "python-eventlet") + (version "0.38.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "eventlet" version)) + (sha256 + (base32 + "1b7dhy3pyp3nfv0zzjrs7i3kam40cl1nh3acy2fd59ywy4x84ika")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + '(list "-k" + (string-append + "not TestGetaddrinfo" + " and not TestProxyResolver" + " and not test_noraise_dns_tcp" + " and not test_raise_dns_tcp" + " and not test_hosts_no_network" + " and not test_import_rdtypes_then_eventlet" + " and not test_patcher_existing_locks" + " and not test_dns_methods_are_green")) + #:phases + '(modify-phases %standard-phases + (add-after 'unpack 'avoid-OSError + (lambda _ + ;; If eventlet tries to load greendns, an OSError is thrown when + ;; getprotobyname is called. Thankfully there is an environment + ;; variable to disable the greendns import, so use it: + (setenv "EVENTLET_NO_GREENDNS" "yes")))))) + (native-inputs + (list python-hatch-vcs + python-hatchling + python-pytest + python-twine)) + (propagated-inputs + (list python-dnspython + python-greenlet + python-monotonic)) + (home-page "https://eventlet.net") + (synopsis "Concurrent networking library for Python") + (description + "Eventlet is a concurrent networking library for Python that +allows you to change how you run your code, not how you write it. +It uses @code{epoll} or @code{libevent} for highly scalable non-blocking I/O. +Coroutines ensure that the developer uses a blocking style of programming +that is similar to threading, but provide the benefits of non-blocking I/O. +The event dispatch is implicit, which means you can easily use @code{Eventlet} +from the Python interpreter, or as a small part of a larger application.") + (license license:expat))) + (define-public python-huggingface-hub (package (name "python-huggingface-hub") diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 174072d45e..56346bd1a8 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -4743,60 +4743,6 @@ (define-public python-openpyxl standard.") (license license:expat))) -(define-public python-eventlet - (package - (name "python-eventlet") - (version "0.38.2") - (source - (origin - (method url-fetch) - (uri (pypi-uri "eventlet" version)) - (sha256 - (base32 - "1b7dhy3pyp3nfv0zzjrs7i3kam40cl1nh3acy2fd59ywy4x84ika")))) - (build-system pyproject-build-system) - (arguments - (list - #:test-flags - '(list "-k" - (string-append - "not TestGetaddrinfo" - " and not TestProxyResolver" - " and not test_noraise_dns_tcp" - " and not test_raise_dns_tcp" - " and not test_hosts_no_network" - " and not test_import_rdtypes_then_eventlet" - " and not test_patcher_existing_locks" - " and not test_dns_methods_are_green")) - #:phases - '(modify-phases %standard-phases - (add-after 'unpack 'avoid-OSError - (lambda _ - ;; If eventlet tries to load greendns, an OSError is thrown when - ;; getprotobyname is called. Thankfully there is an environment - ;; variable to disable the greendns import, so use it: - (setenv "EVENTLET_NO_GREENDNS" "yes")))))) - (native-inputs - (list python-hatch-vcs - python-hatchling - python-pytest - python-twine)) - (propagated-inputs - (list python-dnspython - python-greenlet - python-monotonic)) - (home-page "https://eventlet.net") - (synopsis "Concurrent networking library for Python") - (description - "Eventlet is a concurrent networking library for Python that -allows you to change how you run your code, not how you write it. -It uses @code{epoll} or @code{libevent} for highly scalable non-blocking I/O. -Coroutines ensure that the developer uses a blocking style of programming -that is similar to threading, but provide the benefits of non-blocking I/O. -The event dispatch is implicit, which means you can easily use @code{Eventlet} -from the Python interpreter, or as a small part of a larger application.") - (license license:expat))) - (define-public python-sinfo (package (name "python-sinfo")