From 5363d3751b272f5433c993d9944f9466455f6aa8 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Thu, 18 Feb 2021 23:06:42 -0500 Subject: 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(-) (limited to 'gnu/packages/python-web.scm') 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 @@ 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))) -- cgit v1.2.3 From decd0dc6bcf88669d272e61f95de0a4d0649fbf8 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Sat, 27 Feb 2021 14:12:32 -0500 Subject: gnu: python-aiohttp: Update to 3.7.4 [fixes CVE-2021-21330]. * gnu/packages/python-web.scm (python-aiohttp): Update to 3.7.4. --- gnu/packages/python-web.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 3cc20b2187..a8fe724551 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -94,13 +94,13 @@ (define-public python-aiohttp (package (name "python-aiohttp") - (version "3.7.3") + (version "3.7.4") (source (origin (method url-fetch) (uri (pypi-uri "aiohttp" version)) (sha256 - (base32 "1i3p4yrfgrf1zpbgnywqmb33ps4k51wylcxykhf2cwky0spq26lw")))) + (base32 "1pn79h8fng4xi5gl1f6saw31nxgmgyxl41yf3vba1l21673yr12x")))) (build-system python-build-system) (arguments '(#:phases -- cgit v1.2.3 From b0a869ff80afbc03669dfac663caccea540ffcec Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sun, 28 Feb 2021 11:25:12 +0100 Subject: gnu: python-jose: Use HTTPS home page URI. * gnu/packages/python-web.scm (python-jose)[home-page]: Use HTTPS URI. --- gnu/packages/python-web.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index a8fe724551..b0268e5a31 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -24,7 +24,7 @@ ;;; Copyright © 2015, 2016 David Thompson ;;; Copyright © 2017 Mark Meyer ;;; Copyright © 2018 Tomáš Čech -;;; Copyright © 2018, 2019 Nicolas Goaziou +;;; Copyright © 2018, 2019, 2021 Nicolas Goaziou ;;; Copyright © 2018 Mathieu Othacehe ;;; Copyright © 2018, 2020, 2021 Maxim Cournoyer ;;; Copyright © 2019 Vagrant Cascadian @@ -655,7 +655,7 @@ Swartz.") (package (name "python-jose") (version "3.2.0") - (home-page "http://github.com/mpdavis/python-jose") + (home-page "https://github.com/mpdavis/python-jose") (source (origin (method git-fetch) (uri (git-reference (url home-page) (commit version))) -- cgit v1.2.3