[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/06: gnu: python-geventhttpclient: Adjust to build with updated gevent
From: |
guix-commits |
Subject: |
03/06: gnu: python-geventhttpclient: Adjust to build with updated gevent. |
Date: |
Fri, 19 Feb 2021 10:08:53 -0500 (EST) |
apteryx pushed a commit to branch master
in repository guix.
commit 5363d3751b272f5433c993d9944f9466455f6aa8
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Feb 18 23:06:42 2021 -0500
gnu: python-geventhttpclient: Adjust to build with updated gevent.
* gnu/packages/python-web.scm (python-geventhttpclient): Delete trailing #t.
[phases]{fix-compatibility-issue}: New phase.
{check}: Adjust comment and remove the extraneous string-append.
---
gnu/packages/python-web.scm | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index ab3769b..3cc20b2 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -26,7 +26,7 @@
;;; Copyright © 2018 Tomáš Čech <sleep_walker@gnu.org>
;;; Copyright © 2018, 2019 Nicolas Goaziou <mail@nicolasgoaziou.fr>
;;; Copyright © 2018 Mathieu Othacehe <m.othacehe@gmail.com>
-;;; Copyright © 2018, 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2018, 2020, 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2019 Vagrant Cascadian <vagrant@debian.org>
;;; Copyright © 2019 Brendan Tildesley <mail@brendan.scot>
;;; Copyright © 2019 Pierre Langlois <pierre.langlois@gmx.com>
@@ -3032,16 +3032,20 @@ for the basic TCP/IP protocols.")
'(begin
;; Delete pre-compiled files.
(for-each delete-file (find-files "src/geventhttpclient"
- ".*\\.pyc"))
- #t))))
+ ".*\\.pyc"))))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'delete-network-tests
(lambda _
- (delete-file "src/geventhttpclient/tests/test_client.py")
- #t))
+ (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 inputs outputs #:allow-other-keys)
(add-installed-pythonpath inputs outputs)
@@ -3049,10 +3053,9 @@ for the basic TCP/IP protocols.")
;; Append the test modules to sys.path to avoid
;; namespace conflict which breaks SSL tests.
"--import-mode=append"
- ;; XXX: Disable test fails with Python 3.8:
+ ;; XXX: This test fails with Python 3.8:
;; https://github.com/gwik/geventhttpclient/issues/119
- "-k" (string-append "not test_cookielib_compatibility"))
- #t)))))
+ "-k" "not test_cookielib_compatibility"))))))
(native-inputs
`(("python-dpkt" ,python-dpkt)
("python-pytest" ,python-pytest)))
- branch master updated (8a452e1 -> 8999d2b), guix-commits, 2021/02/19
- 02/06: gnu: python-greenlet: Update to 1.0.0., guix-commits, 2021/02/19
- 01/06: gnu: python-gevent: Update to 21.1.2., guix-commits, 2021/02/19
- 04/06: gnu: python-psutil: Update to 5.8.0., guix-commits, 2021/02/19
- 05/06: doc: Add an example of how the open file descriptors limit can be raised., guix-commits, 2021/02/19
- 03/06: gnu: python-geventhttpclient: Adjust to build with updated gevent.,
guix-commits <=
- 06/06: gnu: python-locust: Update to 1.4.3., guix-commits, 2021/02/19