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
This commit is contained in:
Sharlatan Hellseher 2025-01-17 23:08:32 +00:00
parent ae788e83e7
commit 214c576f62
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5
2 changed files with 54 additions and 54 deletions

View file

@ -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")

View file

@ -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")