From b5f7140151f5efd2c9ba02f45cdba48ee5206803 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Mon, 14 Feb 2022 23:34:16 +0100 Subject: gnu: python-warcio: Fix test failure. * gnu/packages/python-web.scm (python-warcio)[arguments]: Invoke pytest directly instead of going through setup.py. Skip three more tests. --- gnu/packages/python-web.scm | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 8c638ce439..c5b27f5f51 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -5254,16 +5254,22 @@ them to a designated prefix.") "11afr6zy3r6rda81010iq496dazg4xid0izg3smg6ighpmvsnzf2")))) (build-system python-build-system) (arguments - `(#:phases - (modify-phases %standard-phases - (add-after 'unpack 'skip-problematic-tests - (lambda _ - ;; These tests fail due to networking requirements. - (substitute* "setup.py" - (("pytest.main\\(\\[" all) - (string-append all "'-k', '" - (string-append "not test_post_chunked and " - "not test_remote") "'")))))))) + (list + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-vv" + ;; These tests fail due to networking requirements. + "-k" (format #f "not ~a" + (string-join + '("test_post_chunked" + "test_remote" + "test_capture_http_proxy" + "test_capture_https_proxy" + "test_capture_https_proxy_same_session") + " and not "))))))))) (native-inputs ;; These inputs are required for the test suite. (list python-httpbin python-pytest-cov python-requests -- cgit v1.3 From 07fc7764911b361827c5dbc0f388e69f4cef7dbd Mon Sep 17 00:00:00 2001 From: Brendan Tildesley Date: Mon, 7 Feb 2022 13:05:38 +1100 Subject: gnu: python-html5-parser: Update to 0.4.10. * gnu/packages/python-web.scm (python-html5-parser): Update to 0.4.10. Signed-off-by: Nicolas Goaziou --- 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 c5b27f5f51..bd9772e703 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -1273,13 +1273,13 @@ and written in Python.") (define-public python-html5-parser (package (name "python-html5-parser") - (version "0.4.9") + (version "0.4.10") (source (origin (method url-fetch) (uri (pypi-uri "html5-parser" version)) (sha256 (base32 - "13yl3vnf3sxl05m0nhpngnrz3g1jvyahd33lys3m3hfb91l8zzi5")))) + "195wgxls3df7djry9cz3p2k9644l6bfd66fczbaw55fsq0c48agr")))) (build-system python-build-system) (native-inputs (list pkg-config)) -- cgit v1.3 From 7a067107170d6006fe6b5d7b3c0d7bd25a4ca9bd Mon Sep 17 00:00:00 2001 From: Brendan Tildesley Date: Mon, 7 Feb 2022 13:05:40 +1100 Subject: gnu: python-css-parser: Update to 1.0.7. * gnu/packages/python-web.scm (python-css-parser): Update to 1.0.7. Signed-off-by: Nicolas Goaziou --- 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 bd9772e703..76d9a3e0c4 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -1466,13 +1466,13 @@ options.") (package (inherit python-cssutils) (name "python-css-parser") - (version "1.0.6") + (version "1.0.7") (source (origin (method url-fetch) (uri (pypi-uri "css-parser" version ".tar.gz")) (sha256 - (base32 "0bmg4kiiir6pj9x3sd12x4dz2c1xpp2bn5nn60fxnbk2lnl4im2f")))) + (base32 "1ldv9s3an4pgk7b5x6z07rw9b5fdrasdldnf22829pb26b39dq15")))) (home-page "https://github.com/ebook-utils/css-parser") (synopsis "Fork of cssutils modified for parsing ebooks") (description -- cgit v1.3 From 14a556c7ed1e643a4388ca54b68be2f4a89b2161 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 20 Feb 2022 14:02:31 +0200 Subject: gnu: python-aiohttp: Fallback to running tests sequentially. * gnu/packages/python-web.scm (python-aiohttp)[arguments]: Adjust custom 'check phase to run the tests sequentially if they fail when run in parallel. --- gnu/packages/python-web.scm | 49 ++++++++++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 21 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 76d9a3e0c4..456323ca55 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -268,27 +268,34 @@ for adding, removing and dropping callbacks.") (find-files "." "_.*\\.pyx$"))))) (replace 'check (lambda* (#:key tests? #:allow-other-keys) - (when tests? - ;; This tests requires the 'proxy.py' module, not yet - ;; packaged. - (delete-file "tests/test_proxy_functional.py") - (invoke "pytest" "-vv" - ;; Disable loading the aiohttp coverage plugin - ;; to avoid a circular dependency (code coverage - ;; is not very interesting to us anyway). - "-o" "addopts=''" "--ignore=aiohttp" - "-n" (number->string (parallel-job-count)) - "-k" (string-append - ;; This test probably requires to be run with the - ;; library loaded from the the build directory. - "not test_c_parser_loaded and " - ;; Disable the following tests as they require - ;; networking. - "not TestDeflateBuffer and " - "not test_client_session_timeout_zero and " - "not test_empty_body and " - "not test_mark_formdata_as_processed[pyloop] and " - "not test_receive_runtime_err[pyloop]")))))))) + (let ((skipped-tests + (string-append + ;; This test probably requires to be run with the + ;; library loaded from the the build directory. + "not test_c_parser_loaded and " + ;; Disable the following tests as they require + ;; networking. + "not TestDeflateBuffer and " + "not test_client_session_timeout_zero and " + "not test_empty_body and " + "not test_mark_formdata_as_processed[pyloop] and " + "not test_receive_runtime_err[pyloop]"))) + (when tests? + ;; This tests requires the 'proxy.py' module, not yet + ;; packaged. + (delete-file "tests/test_proxy_functional.py") + ;; Sometimes tests fail when run in parallel. + (or + (invoke "pytest" "-vv" + ;; Disable loading the aiohttp coverage plugin + ;; to avoid a circular dependency (code coverage + ;; is not very interesting to us anyway). + "-o" "addopts=''" "--ignore=aiohttp" + "-n" (number->string (parallel-job-count)) + "-k" skipped-tests) + (invoke "pytest" "-vv" + "-o" "addopts=''" "--ignore=aiohttp" + "-k" skipped-tests))))))))) (propagated-inputs (list python-aiodns python-aiosignal -- cgit v1.3 From 3609dcd200059dee96fedc02dedca2b352345757 Mon Sep 17 00:00:00 2001 From: jgart Date: Tue, 30 Nov 2021 19:17:38 -0500 Subject: gnu: Add python-unalix. * gnu/packages/python-xyz.scm (python-unalix): New variable. Modified-by: Maxim Cournoyer Signed-off-by: Maxim Cournoyer --- gnu/packages/python-web.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 456323ca55..240c58b665 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -2785,6 +2785,36 @@ authenticated session objects providing things like keep-alive.") (native-inputs `(("python2-unittest2" ,python2-unittest2) ,@(package-native-inputs base)))))) +(define-public python-unalix + (package + (name "python-unalix") + (version "0.9") + (source + (origin + ;; There's only a wheel on PyPI. + (method git-fetch) + (uri (git-reference + (url "https://github.com/AmanoTeam/Unalix") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0h8wc1axv26h753a8brc6dccqndx005c2bhr09gwg5c1hj9zsfml")))) + (build-system python-build-system) + (native-inputs (list python-pytest)) + (arguments + '(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest"))))))) + (home-page "https://pypi.org/project/Unalix/") + (synopsis "Python library for removing tracking fields from URLs") + (description "Unalix is a library written in Python implementing the +specification used by the @url{https://github.com/ClearURLs/Addon, ClearURLs} +addon for removing tracking fields from URLs.") + (license license:lgpl3+))) + (define-public python-urllib3 (package (name "python-urllib3") -- cgit v1.3 From 53370c7b03b1302e7c84781184fe52a8f6c315c5 Mon Sep 17 00:00:00 2001 From: kiasoc5 Date: Tue, 15 Mar 2022 13:20:00 -0400 Subject: gnu: httpie: Update to 3.1.0 [security fixes]. Fixes CVE-2022-24737 and CVE-2022-0430. * gnu/packages/python-web.scm (httpie): Update to 3.1.0. Signed-off-by: Leo Famulari --- 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 240c58b665..466d9782ca 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -748,14 +748,14 @@ other HTTP libraries.") (define-public httpie (package (name "httpie") - (version "3.0.2") + (version "3.1.0") (source (origin (method url-fetch) (uri (pypi-uri "httpie" version)) (sha256 (base32 - "16ay8mx2v1z3rywsszy055l5k50qjiwyc3pds5wxxzd1n9a79w97")))) + "1npyfvrq0l56bil8rnpj78mav378mxx4zcqzq1jjx4aap1020jif")))) (build-system python-build-system) (arguments ;; The tests attempt to access external web servers, so we cannot run them. -- cgit v1.3 From 4ba792fa157753ebbc1ecb49740930d83db8ea2a Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Fri, 11 Mar 2022 01:15:16 +0100 Subject: gnu: python-gitlab: update to 3.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/python-web.scm (python-gitlab): Update to 3.2.0 Signed-off-by: Denis 'GNUtoo' Carikli Signed-off-by: Ludovic Courtès --- gnu/packages/python-web.scm | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 466d9782ca..9c2a48166a 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -48,6 +48,7 @@ ;;; Copyright © 2021 jgart ;;; Copyright © 2021 Alice Brenon ;;; Copyright © 2022 John Kehayias +;;; Copyright © 2022 Denis 'GNUtoo' Carikli ;;; ;;; This file is part of GNU Guix. ;;; @@ -4910,21 +4911,18 @@ is part of the Weblate translation platform.") (define-public python-gitlab (package (name "python-gitlab") - (version "1.15.0") - (source - (origin - (method url-fetch) - (uri (pypi-uri "python-gitlab" version)) - (sha256 - (base32 - "0zl6kz8v8cg1bcy2r78b2snb0lpw0b573gdx2x1ps0nhsh75l4j5")))) + (version "3.2.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "python-gitlab" version)) + (sha256 + (base32 + "1gi4lp2g4k99zqcx2bgqx940bpmpbc1w9qkl5gy33hpy148yhvlg")))) (build-system python-build-system) - (propagated-inputs - (list python-requests python-six)) - (native-inputs - (list python-httmock python-mock)) - (home-page - "https://github.com/python-gitlab/python-gitlab") + (arguments + `(#:tests? #f)) ;tests require network access + (propagated-inputs (list python-requests python-requests-toolbelt)) + (home-page "https://github.com/python-gitlab/python-gitlab") (synopsis "Interact with GitLab API") (description "This package provides an extended library for interacting with GitLab instances through their API.") -- cgit v1.3