[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
94/105: gnu: python-geventhttpclient: Update to 2.3.3.
From: |
guix-commits |
Subject: |
94/105: gnu: python-geventhttpclient: Update to 2.3.3. |
Date: |
Wed, 25 Dec 2024 10:21:01 -0500 (EST) |
rekado pushed a commit to branch python-team
in repository guix.
commit 381e6b6b93f96d833f0b08763a23cae96c69d318
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Thu Dec 19 20:14:37 2024 +0100
gnu: python-geventhttpclient: Update to 2.3.3.
* gnu/packages/python-web.scm (python-geventhttpclient): Update to 2.3.3.
[source]: Fetch from git repository; remove snippet.
[build-system]: Use pyproject-build-system.
[arguments]: Use #:test-flags; remove all custom phases.
[native-inputs]: Add python-requests, python-setuptools, and python-wheel.
[propagated-inputs]: Remove python-six.
Change-Id: Ide97ffb7d656f58dd6693bd59ff82706bfea6caa
---
gnu/packages/python-web.scm | 61 ++++++++++++++++++++++-----------------------
1 file changed, 30 insertions(+), 31 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 6f137f9aa1..de6a2b91ae 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -5038,42 +5038,41 @@ for the basic TCP/IP protocols.")
(define-public python-geventhttpclient
(package
(name "python-geventhttpclient")
- (version "2.0.9")
+ (version "2.3.3")
(source (origin
- (method url-fetch)
- (uri (pypi-uri "geventhttpclient" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url
"https://github.com/geventhttpclient/geventhttpclient";)
+ (commit version)
+ (recursive? #true)))
+ (file-name (git-file-name name version))
(sha256
(base32
- "04qmcc7qpnif70ph61339dcld4g107fkhpa0gdmbs8z98v9kkg4a"))
- (modules '((guix build utils)))
- (snippet
- '(begin
- ;; Delete pre-compiled files.
- (for-each delete-file (find-files "src/geventhttpclient"
- ".*\\.pyc"))))))
- (build-system python-build-system)
+ "1ya0i0fbx054mfx5d1k75fcf64xzp7vva8lkwwzan41xbnc56nyj"))))
+ (build-system pyproject-build-system)
(arguments
- '(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'delete-network-tests
- (lambda _
- (delete-file "src/geventhttpclient/tests/test_client.py")))
- (add-after 'unpack 'fix-compatibility-issue
- ;; See: https://github.com/gwik/geventhttpclient/issues/137.
- (lambda _
- (substitute* "src/geventhttpclient/tests/test_ssl.py"
- ((".*sock.last_seen_sni = None.*")
- ""))))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "pytest" "src/geventhttpclient/tests" "-v"
- ;; Append the test modules to sys.path to avoid
- ;; namespace conflict which breaks SSL tests.
- "--import-mode=append")))))))
- (native-inputs (list nss-certs-for-test python-dpkt python-pytest))
+ (list
+ #:test-flags
+ ;; Disable network tests.
+ '(list "-k"
+ (string-append "not test_client_simple"
+ " and not test_client_ssl"
+ " and not test_client_with_default_headers"
+ " and not test_client_without_leading_slash"
+ " and not test_download"
+ " and not test_fail_invalid_ca_certificate"
+ " and not test_httpbin_multipart"
+ " and not test_multi_queries_greenlet_safe"
+ " and not test_no_form_encode_header"
+ " and not test_no_form_encoded_header"
+ " and not test_request_with_headers"
+ " and not test_response_context_manager"
+ " and not test_urllib_request"))))
+ (native-inputs (list nss-certs-for-test
+ python-dpkt python-pytest python-requests
+ python-setuptools python-wheel))
(propagated-inputs (list python-brotli python-certifi python-gevent
- python-six python-urllib3))
+ python-urllib3))
(home-page "https://github.com/geventhttpclient/geventhttpclient";)
(synopsis "HTTP client library for gevent")
(description "@code{python-geventhttpclient} is a high performance,
- 38/105: gnu: python-pyramid: Update to 2.0.2., (continued)
- 38/105: gnu: python-pyramid: Update to 2.0.2., guix-commits, 2024/12/25
- 89/105: gnu: python-pandas-2: Remove X., guix-commits, 2024/12/25
- 91/105: gnu: python-gevent: Update to 24.11.1., guix-commits, 2024/12/25
- 82/105: gnu: python-stsci-stimage: Fix build., guix-commits, 2024/12/25
- 86/105: gnu: python-gast: Update to 0.6.0., guix-commits, 2024/12/25
- 90/105: gnu: python-pandas-2: Restrict number of test processes., guix-commits, 2024/12/25
- 85/105: gnu: linkchecker: Update to 10.5.0., guix-commits, 2024/12/25
- 87/105: gnu: python-beniget: Update to 0.4.2.post1., guix-commits, 2024/12/25
- 88/105: gnu: python-pythran: Update to 0.17.0., guix-commits, 2024/12/25
- 93/105: gnu: python-gevent: Propagate greenlet., guix-commits, 2024/12/25
- 94/105: gnu: python-geventhttpclient: Update to 2.3.3.,
guix-commits <=
- 95/105: gnu: python-dulwich: Update to 0.21.7., guix-commits, 2024/12/25
- 99/105: gnu: python-hmmlearn: Add missing inputs., guix-commits, 2024/12/25
- 104/105: gnu: python-pydantic-2: Update to 2.7.0., guix-commits, 2024/12/25
- 102/105: gnu: Add rust-jiter-0.2., guix-commits, 2024/12/25
- 103/105: gnu: python-pydantic-core: Update to 2.18.1., guix-commits, 2024/12/25
- 36/105: gnu: python-statmake: Remove obsolete build phase., guix-commits, 2024/12/25
- 42/105: gnu: python-pytest-qt: Update to 4.4.0., guix-commits, 2024/12/25
- 41/105: gnu: python-pyproject-api: Update to 1.8.0., guix-commits, 2024/12/25
- 44/105: gnu: Add python-time-machine., guix-commits, 2024/12/25
- 45/105: gnu: python-pytest-subprocess: Update to 1.5.2., guix-commits, 2024/12/25