diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index ab3769b360..3cc20b2187 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -26,7 +26,7 @@ ;;; Copyright © 2018 Tomáš Čech ;;; Copyright © 2018, 2019 Nicolas Goaziou ;;; Copyright © 2018 Mathieu Othacehe -;;; Copyright © 2018, 2020 Maxim Cournoyer +;;; Copyright © 2018, 2020, 2021 Maxim Cournoyer ;;; Copyright © 2019 Vagrant Cascadian ;;; Copyright © 2019 Brendan Tildesley ;;; Copyright © 2019 Pierre Langlois @@ -3032,16 +3032,20 @@ (define-public python-geventhttpclient '(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 @@ (define-public python-geventhttpclient ;; 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)))