diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-03-26 08:35:47 +0000 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-05-24 10:14:45 +0100 |
| commit | 0b27a838419336a8bcf98f97167050665b30412f (patch) | |
| tree | 4dd07f21273fa14cd38e9ea3f16795e24f166b67 /gnu/packages/python-web.scm | |
| parent | 803e96bf55b9539c9b805b6709cdbfb32b164c27 (diff) | |
gnu: python-cheroot: Update to 11.1.2.
* gnu/packages/python-web.scm (python-cheroot): Update to 11.1.2.
[source]: Switch to git-fetch.
[arguments] <test-flags>: Drop all.
<phases>: Use default 'check; add 'fix-pytest-config.
[native-inputs]: Remove python-jaraco-text and python-wheel; add
python-pytest.
Fixes: guix/guix#7476
Change-Id: Idffa902090f305ca6d8d4f4a7ad20c1c1c6b5ef9
Diffstat (limited to 'gnu/packages/python-web.scm')
| -rw-r--r-- | gnu/packages/python-web.scm | 38 |
1 files changed, 12 insertions, 26 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 86d0545aea9..347d1b44133 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm | |||
| @@ -3542,49 +3542,35 @@ other HTTP libraries.") | |||
| 3542 | (origin | 3542 | (origin |
| 3543 | (method git-fetch) | 3543 | (method git-fetch) |
| 3544 | (uri (git-reference | 3544 | (uri (git-reference |
| 3545 | (url "https://github.com/cherrypy/cheroot") | 3545 | (url "https://github.com/cherrypy/cheroot") |
| 3546 | (commit (string-append "v" version)))) | 3546 | (commit (string-append "v" version)))) |
| 3547 | (file-name (git-file-name name version)) | 3547 | (file-name (git-file-name name version)) |
| 3548 | (sha256 | 3548 | (sha256 |
| 3549 | (base32 "02rhci01m5fcn8mqpvq3c35rs4n28gxlfvfw2if2f85rgwrji8y8")))) | 3549 | (base32 "02rhci01m5fcn8mqpvq3c35rs4n28gxlfvfw2if2f85rgwrji8y8")))) |
| 3550 | (build-system pyproject-build-system) | 3550 | (build-system pyproject-build-system) |
| 3551 | (arguments | 3551 | (arguments |
| 3552 | (list | 3552 | (list |
| 3553 | #:test-flags | ||
| 3554 | #~(list ;; Tests are flaky in parallel invocation. | ||
| 3555 | ;; "--numprocesses=auto" | ||
| 3556 | "--doctest-modules" | ||
| 3557 | "--showlocals" | ||
| 3558 | "-k" (string-append | ||
| 3559 | ;; Disable test requiring networking. | ||
| 3560 | "not test_tls_client_auth" | ||
| 3561 | ;; TypeError: HTTPConnection.request() got an unexpected keyword | ||
| 3562 | ;; argument 'chunked' | ||
| 3563 | " and not test_peercreds_unix_sock" | ||
| 3564 | " and not test_peercreds_unix_sock_with_lookup")) | ||
| 3565 | #:phases | 3553 | #:phases |
| 3566 | #~(modify-phases %standard-phases | 3554 | #~(modify-phases %standard-phases |
| 3567 | (replace 'check | 3555 | (add-after 'unpack 'fix-pytest-config |
| 3568 | (lambda* (#:key tests? test-flags #:allow-other-keys) | 3556 | (lambda _ |
| 3569 | (when tests? | 3557 | ;; See: <https://codeberg.org/guix/guix/issues/7476>. |
| 3570 | (with-directory-excursion "/tmp" | 3558 | (delete-file "pytest.ini")))))) |
| 3571 | (apply invoke "pytest" "-v" | ||
| 3572 | (append test-flags (list #$output)))))))))) | ||
| 3573 | (propagated-inputs | ||
| 3574 | (list python-jaraco-functools python-more-itertools)) | ||
| 3575 | (native-inputs | 3559 | (native-inputs |
| 3576 | (list python-jaraco-text | 3560 | (list python-portend |
| 3577 | python-portend | ||
| 3578 | python-pyopenssl | 3561 | python-pyopenssl |
| 3579 | python-pypytools | 3562 | python-pypytools |
| 3563 | python-pytest | ||
| 3580 | python-pytest-mock | 3564 | python-pytest-mock |
| 3581 | python-requests | 3565 | python-requests |
| 3582 | python-requests-toolbelt | 3566 | python-requests-toolbelt |
| 3583 | python-requests-unixsocket2 | 3567 | python-requests-unixsocket2 |
| 3584 | python-setuptools | 3568 | python-setuptools |
| 3585 | python-setuptools-scm | 3569 | python-setuptools-scm |
| 3586 | python-trustme | 3570 | python-trustme)) |
| 3587 | python-wheel)) | 3571 | (propagated-inputs |
| 3572 | (list python-jaraco-functools | ||
| 3573 | python-more-itertools)) | ||
| 3588 | (home-page "https://cheroot.cherrypy.dev") | 3574 | (home-page "https://cheroot.cherrypy.dev") |
| 3589 | (synopsis "Highly-optimized, pure-python HTTP server") | 3575 | (synopsis "Highly-optimized, pure-python HTTP server") |
| 3590 | (description | 3576 | (description |
