diff options
| author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2022-03-21 21:38:19 -0400 |
|---|---|---|
| committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2022-03-21 21:38:19 -0400 |
| commit | 49b350fafc2c3ea1db66461b73d4e304cd13ec92 (patch) | |
| tree | 9b9b1a4a383b5175241ae6b91b83de0590f13983 /gnu/packages/python-web.scm | |
| parent | 03b5668a035ba96c9690476078c5ee1d5793f3e2 (diff) | |
| parent | e584a093f943be216fdc93895281fde835836b8d (diff) | |
Merge branch 'master' into staging.
Diffstat (limited to 'gnu/packages/python-web.scm')
| -rw-r--r-- | gnu/packages/python-web.scm | 143 |
1 files changed, 92 insertions, 51 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index ffb899ccd2b..3146cad9339 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm | |||
| @@ -48,6 +48,7 @@ | |||
| 48 | ;;; Copyright © 2021 jgart <jgart@dismail.de> | 48 | ;;; Copyright © 2021 jgart <jgart@dismail.de> |
| 49 | ;;; Copyright © 2021 Alice Brenon <alice.brenon@ens-lyon.fr> | 49 | ;;; Copyright © 2021 Alice Brenon <alice.brenon@ens-lyon.fr> |
| 50 | ;;; Copyright © 2022 John Kehayias <john.kehayias@protonmail.com> | 50 | ;;; Copyright © 2022 John Kehayias <john.kehayias@protonmail.com> |
| 51 | ;;; Copyright © 2022 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | ||
| 51 | ;;; | 52 | ;;; |
| 52 | ;;; This file is part of GNU Guix. | 53 | ;;; This file is part of GNU Guix. |
| 53 | ;;; | 54 | ;;; |
| @@ -268,27 +269,34 @@ for adding, removing and dropping callbacks.") | |||
| 268 | (find-files "." "_.*\\.pyx$"))))) | 269 | (find-files "." "_.*\\.pyx$"))))) |
| 269 | (replace 'check | 270 | (replace 'check |
| 270 | (lambda* (#:key tests? #:allow-other-keys) | 271 | (lambda* (#:key tests? #:allow-other-keys) |
| 271 | (when tests? | 272 | (let ((skipped-tests |
| 272 | ;; This tests requires the 'proxy.py' module, not yet | 273 | (string-append |
| 273 | ;; packaged. | 274 | ;; This test probably requires to be run with the |
| 274 | (delete-file "tests/test_proxy_functional.py") | 275 | ;; library loaded from the the build directory. |
| 275 | (invoke "pytest" "-vv" | 276 | "not test_c_parser_loaded and " |
| 276 | ;; Disable loading the aiohttp coverage plugin | 277 | ;; Disable the following tests as they require |
| 277 | ;; to avoid a circular dependency (code coverage | 278 | ;; networking. |
| 278 | ;; is not very interesting to us anyway). | 279 | "not TestDeflateBuffer and " |
| 279 | "-o" "addopts=''" "--ignore=aiohttp" | 280 | "not test_client_session_timeout_zero and " |
| 280 | "-n" (number->string (parallel-job-count)) | 281 | "not test_empty_body and " |
| 281 | "-k" (string-append | 282 | "not test_mark_formdata_as_processed[pyloop] and " |
| 282 | ;; This test probably requires to be run with the | 283 | "not test_receive_runtime_err[pyloop]"))) |
| 283 | ;; library loaded from the the build directory. | 284 | (when tests? |
| 284 | "not test_c_parser_loaded and " | 285 | ;; This tests requires the 'proxy.py' module, not yet |
| 285 | ;; Disable the following tests as they require | 286 | ;; packaged. |
| 286 | ;; networking. | 287 | (delete-file "tests/test_proxy_functional.py") |
| 287 | "not TestDeflateBuffer and " | 288 | ;; Sometimes tests fail when run in parallel. |
| 288 | "not test_client_session_timeout_zero and " | 289 | (or |
| 289 | "not test_empty_body and " | 290 | (invoke "pytest" "-vv" |
| 290 | "not test_mark_formdata_as_processed[pyloop] and " | 291 | ;; Disable loading the aiohttp coverage plugin |
| 291 | "not test_receive_runtime_err[pyloop]")))))))) | 292 | ;; to avoid a circular dependency (code coverage |
| 293 | ;; is not very interesting to us anyway). | ||
| 294 | "-o" "addopts=''" "--ignore=aiohttp" | ||
| 295 | "-n" (number->string (parallel-job-count)) | ||
| 296 | "-k" skipped-tests) | ||
| 297 | (invoke "pytest" "-vv" | ||
| 298 | "-o" "addopts=''" "--ignore=aiohttp" | ||
| 299 | "-k" skipped-tests))))))))) | ||
| 292 | (propagated-inputs | 300 | (propagated-inputs |
| 293 | (list python-aiodns | 301 | (list python-aiodns |
| 294 | python-aiosignal | 302 | python-aiosignal |
| @@ -741,14 +749,14 @@ other HTTP libraries.") | |||
| 741 | (define-public httpie | 749 | (define-public httpie |
| 742 | (package | 750 | (package |
| 743 | (name "httpie") | 751 | (name "httpie") |
| 744 | (version "3.0.2") | 752 | (version "3.1.0") |
| 745 | (source | 753 | (source |
| 746 | (origin | 754 | (origin |
| 747 | (method url-fetch) | 755 | (method url-fetch) |
| 748 | (uri (pypi-uri "httpie" version)) | 756 | (uri (pypi-uri "httpie" version)) |
| 749 | (sha256 | 757 | (sha256 |
| 750 | (base32 | 758 | (base32 |
| 751 | "16ay8mx2v1z3rywsszy055l5k50qjiwyc3pds5wxxzd1n9a79w97")))) | 759 | "1npyfvrq0l56bil8rnpj78mav378mxx4zcqzq1jjx4aap1020jif")))) |
| 752 | (build-system python-build-system) | 760 | (build-system python-build-system) |
| 753 | (arguments | 761 | (arguments |
| 754 | ;; The tests attempt to access external web servers, so we cannot run them. | 762 | ;; The tests attempt to access external web servers, so we cannot run them. |
| @@ -1273,13 +1281,13 @@ and written in Python.") | |||
| 1273 | (define-public python-html5-parser | 1281 | (define-public python-html5-parser |
| 1274 | (package | 1282 | (package |
| 1275 | (name "python-html5-parser") | 1283 | (name "python-html5-parser") |
| 1276 | (version "0.4.9") | 1284 | (version "0.4.10") |
| 1277 | (source (origin | 1285 | (source (origin |
| 1278 | (method url-fetch) | 1286 | (method url-fetch) |
| 1279 | (uri (pypi-uri "html5-parser" version)) | 1287 | (uri (pypi-uri "html5-parser" version)) |
| 1280 | (sha256 | 1288 | (sha256 |
| 1281 | (base32 | 1289 | (base32 |
| 1282 | "13yl3vnf3sxl05m0nhpngnrz3g1jvyahd33lys3m3hfb91l8zzi5")))) | 1290 | "195wgxls3df7djry9cz3p2k9644l6bfd66fczbaw55fsq0c48agr")))) |
| 1283 | (build-system python-build-system) | 1291 | (build-system python-build-system) |
| 1284 | (native-inputs | 1292 | (native-inputs |
| 1285 | (list pkg-config)) | 1293 | (list pkg-config)) |
| @@ -1466,13 +1474,13 @@ options.") | |||
| 1466 | (package | 1474 | (package |
| 1467 | (inherit python-cssutils) | 1475 | (inherit python-cssutils) |
| 1468 | (name "python-css-parser") | 1476 | (name "python-css-parser") |
| 1469 | (version "1.0.6") | 1477 | (version "1.0.7") |
| 1470 | (source | 1478 | (source |
| 1471 | (origin | 1479 | (origin |
| 1472 | (method url-fetch) | 1480 | (method url-fetch) |
| 1473 | (uri (pypi-uri "css-parser" version ".tar.gz")) | 1481 | (uri (pypi-uri "css-parser" version ".tar.gz")) |
| 1474 | (sha256 | 1482 | (sha256 |
| 1475 | (base32 "0bmg4kiiir6pj9x3sd12x4dz2c1xpp2bn5nn60fxnbk2lnl4im2f")))) | 1483 | (base32 "1ldv9s3an4pgk7b5x6z07rw9b5fdrasdldnf22829pb26b39dq15")))) |
| 1476 | (home-page "https://github.com/ebook-utils/css-parser") | 1484 | (home-page "https://github.com/ebook-utils/css-parser") |
| 1477 | (synopsis "Fork of cssutils modified for parsing ebooks") | 1485 | (synopsis "Fork of cssutils modified for parsing ebooks") |
| 1478 | (description | 1486 | (description |
| @@ -2781,6 +2789,36 @@ authenticated session objects providing things like keep-alive.") | |||
| 2781 | (native-inputs `(("python2-unittest2" ,python2-unittest2) | 2789 | (native-inputs `(("python2-unittest2" ,python2-unittest2) |
| 2782 | ,@(package-native-inputs base)))))) | 2790 | ,@(package-native-inputs base)))))) |
| 2783 | 2791 | ||
| 2792 | (define-public python-unalix | ||
| 2793 | (package | ||
| 2794 | (name "python-unalix") | ||
| 2795 | (version "0.9") | ||
| 2796 | (source | ||
| 2797 | (origin | ||
| 2798 | ;; There's only a wheel on PyPI. | ||
| 2799 | (method git-fetch) | ||
| 2800 | (uri (git-reference | ||
| 2801 | (url "https://github.com/AmanoTeam/Unalix") | ||
| 2802 | (commit (string-append "v" version)))) | ||
| 2803 | (file-name (git-file-name name version)) | ||
| 2804 | (sha256 | ||
| 2805 | (base32 "0h8wc1axv26h753a8brc6dccqndx005c2bhr09gwg5c1hj9zsfml")))) | ||
| 2806 | (build-system python-build-system) | ||
| 2807 | (native-inputs (list python-pytest)) | ||
| 2808 | (arguments | ||
| 2809 | '(#:phases | ||
| 2810 | (modify-phases %standard-phases | ||
| 2811 | (replace 'check | ||
| 2812 | (lambda* (#:key tests? #:allow-other-keys) | ||
| 2813 | (when tests? | ||
| 2814 | (invoke "pytest"))))))) | ||
| 2815 | (home-page "https://pypi.org/project/Unalix/") | ||
| 2816 | (synopsis "Python library for removing tracking fields from URLs") | ||
| 2817 | (description "Unalix is a library written in Python implementing the | ||
| 2818 | specification used by the @url{https://github.com/ClearURLs/Addon, ClearURLs} | ||
| 2819 | addon for removing tracking fields from URLs.") | ||
| 2820 | (license license:lgpl3+))) | ||
| 2821 | |||
| 2784 | (define-public python-urllib3 | 2822 | (define-public python-urllib3 |
| 2785 | (package | 2823 | (package |
| 2786 | (name "python-urllib3") | 2824 | (name "python-urllib3") |
| @@ -4876,21 +4914,18 @@ is part of the Weblate translation platform.") | |||
| 4876 | (define-public python-gitlab | 4914 | (define-public python-gitlab |
| 4877 | (package | 4915 | (package |
| 4878 | (name "python-gitlab") | 4916 | (name "python-gitlab") |
| 4879 | (version "1.15.0") | 4917 | (version "3.2.0") |
| 4880 | (source | 4918 | (source (origin |
| 4881 | (origin | 4919 | (method url-fetch) |
| 4882 | (method url-fetch) | 4920 | (uri (pypi-uri "python-gitlab" version)) |
| 4883 | (uri (pypi-uri "python-gitlab" version)) | 4921 | (sha256 |
| 4884 | (sha256 | 4922 | (base32 |
| 4885 | (base32 | 4923 | "1gi4lp2g4k99zqcx2bgqx940bpmpbc1w9qkl5gy33hpy148yhvlg")))) |
| 4886 | "0zl6kz8v8cg1bcy2r78b2snb0lpw0b573gdx2x1ps0nhsh75l4j5")))) | ||
| 4887 | (build-system python-build-system) | 4924 | (build-system python-build-system) |
| 4888 | (propagated-inputs | 4925 | (arguments |
| 4889 | (list python-requests python-six)) | 4926 | `(#:tests? #f)) ;tests require network access |
| 4890 | (native-inputs | 4927 | (propagated-inputs (list python-requests python-requests-toolbelt)) |
| 4891 | (list python-httmock python-mock)) | 4928 | (home-page "https://github.com/python-gitlab/python-gitlab") |
| 4892 | (home-page | ||
| 4893 | "https://github.com/python-gitlab/python-gitlab") | ||
| 4894 | (synopsis "Interact with GitLab API") | 4929 | (synopsis "Interact with GitLab API") |
| 4895 | (description "This package provides an extended library for interacting | 4930 | (description "This package provides an extended library for interacting |
| 4896 | with GitLab instances through their API.") | 4931 | with GitLab instances through their API.") |
| @@ -5257,16 +5292,22 @@ them to a designated prefix.") | |||
| 5257 | "11afr6zy3r6rda81010iq496dazg4xid0izg3smg6ighpmvsnzf2")))) | 5292 | "11afr6zy3r6rda81010iq496dazg4xid0izg3smg6ighpmvsnzf2")))) |
| 5258 | (build-system python-build-system) | 5293 | (build-system python-build-system) |
| 5259 | (arguments | 5294 | (arguments |
| 5260 | `(#:phases | 5295 | (list |
| 5261 | (modify-phases %standard-phases | 5296 | #:phases |
| 5262 | (add-after 'unpack 'skip-problematic-tests | 5297 | #~(modify-phases %standard-phases |
| 5263 | (lambda _ | 5298 | (replace 'check |
| 5264 | ;; These tests fail due to networking requirements. | 5299 | (lambda* (#:key tests? #:allow-other-keys) |
| 5265 | (substitute* "setup.py" | 5300 | (when tests? |
| 5266 | (("pytest.main\\(\\[" all) | 5301 | (invoke "pytest" "-vv" |
| 5267 | (string-append all "'-k', '" | 5302 | ;; These tests fail due to networking requirements. |
| 5268 | (string-append "not test_post_chunked and " | 5303 | "-k" (format #f "not ~a" |
| 5269 | "not test_remote") "'")))))))) | 5304 | (string-join |
| 5305 | '("test_post_chunked" | ||
| 5306 | "test_remote" | ||
| 5307 | "test_capture_http_proxy" | ||
| 5308 | "test_capture_https_proxy" | ||
| 5309 | "test_capture_https_proxy_same_session") | ||
| 5310 | " and not "))))))))) | ||
| 5270 | (native-inputs | 5311 | (native-inputs |
| 5271 | ;; These inputs are required for the test suite. | 5312 | ;; These inputs are required for the test suite. |
| 5272 | (list python-httpbin python-pytest-cov python-requests | 5313 | (list python-httpbin python-pytest-cov python-requests |
