diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-01-17 23:08:32 +0000 |
|---|---|---|
| committer | Ricardo Wurmus <rekado@elephly.net> | 2025-01-20 21:38:04 +0100 |
| commit | e7b7ec2851a77b84d41281db3bb966dae9442496 (patch) | |
| tree | 45ae368b74d8d1e1412fd96ce078d6b2838ad710 /gnu/packages/python-web.scm | |
| parent | a3a7cf95790ffb9df7fbe55acc5baf6f0fd0d80c (diff) | |
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
Diffstat (limited to 'gnu/packages/python-web.scm')
| -rw-r--r-- | gnu/packages/python-web.scm | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index f01843185cb..6796e931d47 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm | |||
| @@ -320,6 +320,60 @@ server process.") | |||
| 320 | caching server.") | 320 | caching server.") |
| 321 | (license license:expat))) | 321 | (license license:expat))) |
| 322 | 322 | ||
| 323 | (define-public python-eventlet | ||
| 324 | (package | ||
| 325 | (name "python-eventlet") | ||
| 326 | (version "0.38.2") | ||
| 327 | (source | ||
| 328 | (origin | ||
| 329 | (method url-fetch) | ||
| 330 | (uri (pypi-uri "eventlet" version)) | ||
| 331 | (sha256 | ||
| 332 | (base32 | ||
| 333 | "1b7dhy3pyp3nfv0zzjrs7i3kam40cl1nh3acy2fd59ywy4x84ika")))) | ||
| 334 | (build-system pyproject-build-system) | ||
| 335 | (arguments | ||
| 336 | (list | ||
| 337 | #:test-flags | ||
| 338 | '(list "-k" | ||
| 339 | (string-append | ||
| 340 | "not TestGetaddrinfo" | ||
| 341 | " and not TestProxyResolver" | ||
| 342 | " and not test_noraise_dns_tcp" | ||
| 343 | " and not test_raise_dns_tcp" | ||
| 344 | " and not test_hosts_no_network" | ||
| 345 | " and not test_import_rdtypes_then_eventlet" | ||
| 346 | " and not test_patcher_existing_locks" | ||
| 347 | " and not test_dns_methods_are_green")) | ||
| 348 | #:phases | ||
| 349 | '(modify-phases %standard-phases | ||
| 350 | (add-after 'unpack 'avoid-OSError | ||
| 351 | (lambda _ | ||
| 352 | ;; If eventlet tries to load greendns, an OSError is thrown when | ||
| 353 | ;; getprotobyname is called. Thankfully there is an environment | ||
| 354 | ;; variable to disable the greendns import, so use it: | ||
| 355 | (setenv "EVENTLET_NO_GREENDNS" "yes")))))) | ||
| 356 | (native-inputs | ||
| 357 | (list python-hatch-vcs | ||
| 358 | python-hatchling | ||
| 359 | python-pytest | ||
| 360 | python-twine)) | ||
| 361 | (propagated-inputs | ||
| 362 | (list python-dnspython | ||
| 363 | python-greenlet | ||
| 364 | python-monotonic)) | ||
| 365 | (home-page "https://eventlet.net") | ||
| 366 | (synopsis "Concurrent networking library for Python") | ||
| 367 | (description | ||
| 368 | "Eventlet is a concurrent networking library for Python that | ||
| 369 | allows you to change how you run your code, not how you write it. | ||
| 370 | It uses @code{epoll} or @code{libevent} for highly scalable non-blocking I/O. | ||
| 371 | Coroutines ensure that the developer uses a blocking style of programming | ||
| 372 | that is similar to threading, but provide the benefits of non-blocking I/O. | ||
| 373 | The event dispatch is implicit, which means you can easily use @code{Eventlet} | ||
| 374 | from the Python interpreter, or as a small part of a larger application.") | ||
| 375 | (license license:expat))) | ||
| 376 | |||
| 323 | (define-public python-huggingface-hub | 377 | (define-public python-huggingface-hub |
| 324 | (package | 378 | (package |
| 325 | (name "python-huggingface-hub") | 379 | (name "python-huggingface-hub") |
