From a1c11cc652d6e6410748cae5dbec51e0692b6fb8 Mon Sep 17 00:00:00 2001 From: jgart Date: Tue, 22 Mar 2022 19:14:31 -0400 Subject: gnu: python-port-for: Remove trailing boolean. * gnu/packages/python-web.scm (python-port-for)[arguments]: Remove trailing boolean from lambda function. Signed-off-by: Mathieu Othacehe --- gnu/packages/python-web.scm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 9c2a48166a..741d4044ed 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -5023,8 +5023,7 @@ (define-public python-port-for (add-after 'unpack 'use-urllib3 (lambda _ (substitute* "port_for/_download_ranges.py" - (("urllib2") "urllib3")) - #t))))) + (("urllib2") "urllib3"))))))) (propagated-inputs (list python-urllib3)) (native-inputs -- cgit v1.2.3 From c116376542a8508dc90ed1ed12d27e92dfe73bc7 Mon Sep 17 00:00:00 2001 From: jgart Date: Tue, 22 Mar 2022 19:15:49 -0400 Subject: gnu: python-livereload: Update to 2.6.3. * gnu/packages/python-web.scm (python-livereload): Update to 2.6.3. Signed-off-by: Mathieu Othacehe --- 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 741d4044ed..41e0d1c3d6 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -5039,14 +5039,14 @@ (define-public python-port-for (define-public python-livereload (package (name "python-livereload") - (version "2.6.1") + (version "2.6.3") (source (origin (method url-fetch) (uri (pypi-uri "livereload" version)) (sha256 (base32 - "0rhggz185bxc3zjnfpmhcvibyzi86i624za1lfh7x7ajsxw4y9c9")))) + "0scqjnhg3ap81v36ghp0pik774dnfdkwqsx5j1jfbzarbs32yvvp")))) (build-system python-build-system) (propagated-inputs (list python-six python-tornado)) -- cgit v1.2.3 From c9cca908fa79c51ea3bc8ed2aa6c11d1b1868765 Mon Sep 17 00:00:00 2001 From: Felix Gruber Date: Sun, 3 Apr 2022 18:36:39 +0000 Subject: gnu: python-w3lib: Fix build. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/python-web.scm (python-w3lib): Fix build. [source]: Add python-w3lib-fix-test-failure.patch. [arguments]: Use pytest in the 'check phase. [native-inputs]: Add python-pytest. * gnu/packages/patches/python-w3lib-fix-test-failure.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. Signed-off-by: Ludovic Courtès --- gnu/local.mk | 1 + .../patches/python-w3lib-fix-test-failure.patch | 60 ++++++++++++++++++++++ gnu/packages/python-web.scm | 11 +++- 3 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 gnu/packages/patches/python-w3lib-fix-test-failure.patch (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/local.mk b/gnu/local.mk index 420aa91d86..50168edaf2 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1591,6 +1591,7 @@ dist_patch_DATA = \ %D%/packages/patches/python-chai-drop-python2.patch \ %D%/packages/patches/python-random2-getrandbits-test.patch \ %D%/packages/patches/python-poppler-qt5-fix-build.patch \ + %D%/packages/patches/python-w3lib-fix-test-failure.patch \ %D%/packages/patches/sdcc-disable-non-free-code.patch \ %D%/packages/patches/sdl-pango-api_additions.patch \ %D%/packages/patches/sdl-pango-blit_overflow.patch \ diff --git a/gnu/packages/patches/python-w3lib-fix-test-failure.patch b/gnu/packages/patches/python-w3lib-fix-test-failure.patch new file mode 100644 index 0000000000..f38fc749df --- /dev/null +++ b/gnu/packages/patches/python-w3lib-fix-test-failure.patch @@ -0,0 +1,60 @@ +From fae6cc40e112cd13697cb0e8d79976f32c72491d Mon Sep 17 00:00:00 2001 +From: Eugenio Lacuesta +Date: Wed, 10 Mar 2021 12:31:05 -0300 +Subject: [PATCH] [CI] Mark single add_or_replace_parameter test as xfail + +--- +This patch is based on upstream commit +fae6cc40e112cd13697cb0e8d79976f32c72491d which is part of +https://github.com/scrapy/w3lib/pull/166. + + .gitignore | 3 ++- + tests/test_url.py | 25 ++++++++++++++----------- + 2 files changed, 16 insertions(+), 12 deletions(-) + +diff --git a/tests/test_url.py b/tests/test_url.py +index 8b07c00..0f7458e 100644 +--- a/tests/test_url.py ++++ b/tests/test_url.py +@@ -1,12 +1,14 @@ +-# -*- coding: utf-8 -*- + from __future__ import absolute_import + import os + import unittest ++ ++import pytest ++from six.moves.urllib.parse import urlparse ++ + from w3lib.url import (is_url, safe_url_string, safe_download_url, + url_query_parameter, add_or_replace_parameter, url_query_cleaner, + file_uri_to_path, parse_data_uri, path_to_file_uri, any_to_uri, + urljoin_rfc, canonicalize_url, parse_url, add_or_replace_parameters) +-from six.moves.urllib.parse import urlparse + + + class UrlTests(unittest.TestCase): +@@ -310,10 +311,6 @@ def test_add_or_replace_parameter(self): + self.assertEqual(add_or_replace_parameter(url, 'arg3', 'nv3'), + 'http://domain/test?arg1=v1&arg2=v2&arg3=nv3') + +- url = 'http://domain/test?arg1=v1;arg2=v2' +- self.assertEqual(add_or_replace_parameter(url, 'arg1', 'v3'), +- 'http://domain/test?arg1=v3&arg2=v2') +- + self.assertEqual(add_or_replace_parameter("http://domain/moreInfo.asp?prodID=", 'prodID', '20'), + 'http://domain/moreInfo.asp?prodID=20') + url = 'http://rmc-offers.co.uk/productlist.asp?BCat=2%2C60&CatID=60' +@@ -338,6 +335,13 @@ def test_add_or_replace_parameter(self): + self.assertEqual(add_or_replace_parameter(url, 'arg1', 'v3'), + 'http://domain/test?arg1=v3&arg2=v2') + ++ @pytest.mark.xfail(reason="https://github.com/scrapy/w3lib/issues/164") ++ def test_add_or_replace_parameter_fail(self): ++ self.assertEqual( ++ add_or_replace_parameter('http://domain/test?arg1=v1;arg2=v2', 'arg1', 'v3'), ++ 'http://domain/test?arg1=v3&arg2=v2' ++ ) ++ + def test_add_or_replace_parameters(self): + url = 'http://domain/test' + self.assertEqual(add_or_replace_parameters(url, {'arg': 'v'}), diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 41e0d1c3d6..f77d163833 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -49,6 +49,7 @@ ;;; Copyright © 2021 Alice Brenon ;;; Copyright © 2022 John Kehayias ;;; Copyright © 2022 Denis 'GNUtoo' Carikli +;;; Copyright © 2022 Felix Gruber ;;; ;;; This file is part of GNU Guix. ;;; @@ -6188,12 +6189,20 @@ (define-public python-w3lib (origin (method url-fetch) (uri (pypi-uri "w3lib" version)) + (patches (search-patches "python-w3lib-fix-test-failure.patch")) (sha256 (base32 "1pv02lvvmgz2qb61vz1jkjc04fgm4hpfvaj5zm4i3mjp64hd1mha")))) (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest"))))))) (native-inputs - (list python-six)) + (list python-pytest python-six)) (home-page "https://github.com/scrapy/w3lib") (synopsis "Python library of web-related functions") (description -- cgit v1.2.3 From c5ee8f6e298626f1fbb44ee8cdf134b87bd8d3e4 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Thu, 7 Apr 2022 16:47:29 +0200 Subject: gnu: python-aws-xray-sdk: Update to 2.9.0. * gnu/packages/python-web.scm (python-aws-xray-sdk): Update to 2.9.0. [arguments]: Delete two more test files; disable two tests. --- gnu/packages/python-web.scm | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index f77d163833..84d0293ddd 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -5,7 +5,7 @@ ;;; Copyright © 2016, 2017 Danny Milosavljevic ;;; Copyright © 2013, 2014, 2015, 2016, 2020 Andreas Enge ;;; Copyright © 2016, 2017, 2019-2022 Marius Bakke -;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020, 2021 Ricardo Wurmus +;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 Ricardo Wurmus ;;; Copyright © 2017, 2021 Roel Janssen ;;; Copyright © 2016, 2017, 2020 Julien Lepiller ;;; Copyright © 2016, 2017 Nikita @@ -498,7 +498,7 @@ (define-public python-aws-sam-translator (define-public python-aws-xray-sdk (package (name "python-aws-xray-sdk") - (version "2.6.0") + (version "2.9.0") (home-page "https://github.com/aws/aws-xray-sdk-python") (source (origin (method git-fetch) @@ -506,7 +506,7 @@ (define-public python-aws-xray-sdk (file-name (git-file-name name version)) (sha256 (base32 - "12fzr0ylpa1lx3xr1x2f1jx8iiyzcr6g57fb9jign0j0lxdlbzpv")))) + "04fyik5axbilj2g9fzhhw8ch8xfn7iai3j6myk7z4g26m1mrhxsi")))) (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases @@ -520,6 +520,7 @@ (define-public python-aws-xray-sdk "tests/ext/psycopg2/test_psycopg2.py" "tests/ext/pymysql/test_pymysql.py" "tests/ext/pynamodb/test_pynamodb.py" + "tests/ext/sqlalchemy_core/test_postgres.py" "tests/test_async_recorder.py" ;; FIXME: Why is this failing? @@ -528,6 +529,7 @@ (define-public python-aws-xray-sdk ;; TODO: How to configure Django for these tests. "tests/ext/django/test_db.py" "tests/ext/django/test_middleware.py" + "tests/ext/django/test_settings.py" ;; These tests want to access httpbin.org. "tests/ext/requests/test_requests.py" @@ -537,7 +539,13 @@ (define-public python-aws-xray-sdk (lambda _ ;; Allow "import tests.utils" to work as expected. (setenv "PYTHONPATH" (getcwd)) - (invoke "pytest" "-vv" "tests")))))) + (invoke "pytest" "-vv" "tests" + "-k" + ;; These tests fail because "fixture 'benchmark' + ;; not found" + (string-append + "not test_pkgutil_static_read" + " and not test_pkg_resources_static_read"))))))) (native-inputs (list ;; These are required for the test suite. python-bottle -- cgit v1.2.3 From 797478f77b1d3175c2bcb3578f32147d28d53430 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Tue, 12 Apr 2022 23:07:00 +0200 Subject: gnu: awscli: Use older pyyaml. * gnu/packages/python-web.scm (awscli)[propagated-inputs]: Replace python-pyyaml with python-pyyaml-for-awscli. --- gnu/packages/python-web.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 84d0293ddd..f11eb9778b 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -2892,7 +2892,7 @@ (define-public awscli python-botocore python-s3transfer python-docutils-0.15 - python-pyyaml + python-pyyaml-for-awscli python-rsa)) (native-inputs (list groff)) -- cgit v1.2.3 From 2c37975fcc9ab65a3392037f91f9804bf3e811a2 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Tue, 12 Apr 2022 23:08:44 +0200 Subject: gnu: awscli: Use older version of botocore. * gnu/packages/python-web.scm (awscli)[propagated-inputs]: Replace python-botocore with python-botocore-for-awscli. --- gnu/packages/python-web.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index f11eb9778b..ab6b11c3c6 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -2889,7 +2889,7 @@ (define-public awscli (string-append "cmdline = ['" (which "groff") "'")))))))) (propagated-inputs (list python-colorama-for-awscli - python-botocore + python-botocore-for-awscli python-s3transfer python-docutils-0.15 python-pyyaml-for-awscli -- cgit v1.2.3 From 21cd4c704e3c75e89b5760157d61060787dcb71f Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Wed, 13 Apr 2022 09:25:13 +0200 Subject: gnu: awscli: Use PyYAML 6. This should be fine because all uses of yaml.load supply the now mandatory loader argument. * gnu/packages/python-web.scm (awscli)[arguments]: Add phase 'use-recent-pyyaml. [propagated-inputs]: Replace python-pyyaml-for-awscli with python-pyyaml. --- gnu/packages/python-web.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index ab6b11c3c6..da83646f95 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -2880,6 +2880,12 @@ (define-public awscli '(#:tests? #f #:phases (modify-phases %standard-phases + (add-after 'unpack 'use-recent-pyyaml + (lambda _ + (substitute* '("awscli.egg-info/requires.txt" + "setup.cfg" + "setup.py") + (("<5.5") "<=6")))) (add-after 'unpack 'fix-reference-to-groff (lambda _ (substitute* "awscli/help.py" @@ -2892,7 +2898,7 @@ (define-public awscli python-botocore-for-awscli python-s3transfer python-docutils-0.15 - python-pyyaml-for-awscli + python-pyyaml python-rsa)) (native-inputs (list groff)) -- cgit v1.2.3 From fc89b50b7bb2edbc38b20adf8c899934dedcb6c3 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Wed, 13 Apr 2022 09:26:47 +0200 Subject: gnu: awscli: Do not propagate inputs. * gnu/packages/python-web.scm (awscli)[propagated-inputs]: Move all inputs from here... [inputs]: ...to here. --- gnu/packages/python-web.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index da83646f95..f1990b2b0b 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -2893,7 +2893,7 @@ (define-public awscli (("raise ExecutableNotFoundError\\('groff'\\)") "") (("cmdline = \\['groff'") (string-append "cmdline = ['" (which "groff") "'")))))))) - (propagated-inputs + (inputs (list python-colorama-for-awscli python-botocore-for-awscli python-s3transfer -- cgit v1.2.3 From ac5f070631e7a569952759884ba8b2aeb01d5cbb Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 14 Apr 2022 23:30:27 +0300 Subject: gnu: python-aiohttp: Remove cythonized files. * gnu/packages/python-web.scm (python-aiohttp)[source]: Add snippet to remove cythonized files. --- gnu/packages/python-web.scm | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index f1990b2b0b..28c934e896 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -232,11 +232,15 @@ (define-public python-aiohttp (uri (pypi-uri "aiohttp" version)) (sha256 (base32 "0y3m1dzl4h6frg8vys0fc3m83ijd1plfpihv3kvmxqadlphp2m7w")) - ;; TODO: Unbundle the llhttp sources. - ;; (modules '((guix build utils))) - ;; (snippet - ;; '((delete-file-recursively "vendor"))) - )) + (snippet + #~(begin + (use-modules ((guix build utils))) + ;; TODO: Unbundle the llhttp sources. + ;; (delete-file-recursively "vendor") + (delete-file "aiohttp/_helpers.c") + (delete-file "aiohttp/_http_parser.c") + (delete-file "aiohttp/_http_writer.c") + (delete-file "aiohttp/_websocket.c"))))) (build-system python-build-system) (arguments '(#:phases -- cgit v1.2.3 From 7cf080aa71872523dc3dbe856967e4fa5a76030b Mon Sep 17 00:00:00 2001 From: Felix Gruber Date: Mon, 18 Apr 2022 11:43:45 +0000 Subject: gnu: awscli: Update to 1.22.90. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/python-web.scm (awscli): Update to 1.22.90. [arguments] Use search-input-file to find groff. [inputs]: Replace python-botocore-for-awscli with python-botocore. Add groff. [native-inputs]: Remove groff. Signed-off-by: Ludovic Courtès --- gnu/packages/python-web.scm | 17 +++++++++-------- 1 file changed, 9 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 28c934e896..5fcfd27914 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -2870,14 +2870,14 @@ (define-public awscli (package ;; Note: updating awscli typically requires updating botocore as well. (name "awscli") - (version "1.21.11") + (version "1.22.90") (source (origin (method url-fetch) (uri (pypi-uri name version)) (sha256 (base32 - "0fkivwbx4nind5b7l4jhqm5bb9drgqsclcslrg4aggf9rcs4g4s0")))) + "0ky4ax4xh7s8w1l0hwc7w9ii8afvh9nib3kz09qhiqdinxzrlv54")))) (build-system python-build-system) (arguments ;; FIXME: The 'pypi' release does not contain tests. @@ -2891,21 +2891,22 @@ (define-public awscli "setup.py") (("<5.5") "<=6")))) (add-after 'unpack 'fix-reference-to-groff - (lambda _ + (lambda* (#:key inputs #:allow-other-keys) (substitute* "awscli/help.py" (("if not self._exists_on_path\\('groff'\\):") "") (("raise ExecutableNotFoundError\\('groff'\\)") "") (("cmdline = \\['groff'") - (string-append "cmdline = ['" (which "groff") "'")))))))) + (string-append "cmdline = ['" + (search-input-file inputs "bin/groff") + "'")))))))) (inputs - (list python-colorama-for-awscli - python-botocore-for-awscli + (list groff + python-colorama-for-awscli + python-botocore python-s3transfer python-docutils-0.15 python-pyyaml python-rsa)) - (native-inputs - (list groff)) (home-page "https://aws.amazon.com/cli/") (synopsis "Command line client for AWS") (description "AWS CLI provides a unified command line interface to the -- cgit v1.2.3 From 2aa5329023128168db2691ed26fb512f9dac0c48 Mon Sep 17 00:00:00 2001 From: Peter Polidoro Date: Tue, 5 Apr 2022 14:57:16 -0400 Subject: gnu: Add python-quart. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/python-web.scm (python-quart): New variable. Signed-off-by: Ludovic Courtès --- gnu/packages/python-web.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 5fcfd27914..d77e310835 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -50,6 +50,7 @@ ;;; Copyright © 2022 John Kehayias ;;; Copyright © 2022 Denis 'GNUtoo' Carikli ;;; Copyright © 2022 Felix Gruber +;;; Copyright © 2022 Peter Polidoro ;;; ;;; This file is part of GNU Guix. ;;; @@ -6415,3 +6416,31 @@ (define-public python-tweepy (description "This package provides @code{Tweepy}, an easy-to-use Python library for accessing the Twitter API.") (license license:expat))) + +(define-public python-quart + (package + (name "python-quart") + (version "0.17.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "Quart" version)) + (sha256 + (base32 "0h4n2dwzmqifya1razp9s7ppr4ra23ljac9v7sl039rzp3c17wic")))) + (build-system python-build-system) + (propagated-inputs + (list hypercorn + python-aiofiles + python-blinker + python-click + python-itsdangerous + python-jinja2 + python-markupsafe + python-toml + python-werkzeug)) + (home-page "https://gitlab.com/pgjones/quart/") + (synopsis "Python ASGI web microframework with the same API as Flask") + (description + "This package provides a Python ASGI web microframework with the same API +as Flask.") + (license license:expat))) -- cgit v1.2.3 From fc2d94a3f95b3a8f6e469fdd3cb92bdf110e1bd2 Mon Sep 17 00:00:00 2001 From: Peter Polidoro Date: Mon, 18 Apr 2022 23:17:11 +0200 Subject: gnu: Add python-ajsonrpc. * gnu/packages/python-web.scm (python-ajsonrpc): New variable. --- gnu/packages/python-web.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index d77e310835..7e333916b6 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6444,3 +6444,25 @@ (define-public python-quart "This package provides a Python ASGI web microframework with the same API as Flask.") (license license:expat))) + +(define-public python-ajsonrpc + (package + (name "python-ajsonrpc") + (version "1.2.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "ajsonrpc" version)) + (sha256 + (base32 "17x1a4r4l428mhwn53abki9gzdzq3halyr4lj48fw3dzy0caq6vr")))) + (build-system python-build-system) + (propagated-inputs + (list python-quart + python-sanic + python-tornado)) + (home-page "https://github.com/pavlov99/ajsonrpc") + (synopsis "Async JSON-RPC 2.0 protocol and server") + (description + "This package provides a Python JSON-RPC 2.0 protocol and server powered +by asyncio.") + (license license:expat))) -- cgit v1.2.3 From d219d48cce59e02195e32a80c16e0b7cffb11e75 Mon Sep 17 00:00:00 2001 From: Felix Gruber Date: Wed, 20 Apr 2022 17:28:01 +0000 Subject: gnu: Add python-protego. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/python-web.scm (python-protego): New variable. Signed-off-by: Ludovic Courtès --- gnu/packages/python-web.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 7e333916b6..05104f8fe2 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6466,3 +6466,30 @@ (define-public python-ajsonrpc "This package provides a Python JSON-RPC 2.0 protocol and server powered by asyncio.") (license license:expat))) + +(define-public python-protego + (package + (name "python-protego") + (version "0.2.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "Protego" version)) + (sha256 + (base32 "1wigcjyhz8zbk562zhgfbkm733dcn65j1swzvki79dys0i1nsrnz")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest"))))))) + (propagated-inputs (list python-six)) + (native-inputs (list python-pytest)) + (home-page "https://github.com/scrapy/protego") + (synopsis + "Pure-Python robots.txt parser with support for modern conventions") + (description + "Pure-Python robots.txt parser with support for modern conventions.") + (license license:bsd-3))) -- cgit v1.2.3 From 76b6337650ba35c85e9263c958dd334766268172 Mon Sep 17 00:00:00 2001 From: Felix Gruber Date: Wed, 20 Apr 2022 17:28:02 +0000 Subject: gnu: Add python-parsel. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/python-web.scm (python-parsel): New variable. Signed-off-by: Ludovic Courtès --- gnu/packages/python-web.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 05104f8fe2..b2fbbc86cd 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6493,3 +6493,28 @@ (define-public python-protego (description "Pure-Python robots.txt parser with support for modern conventions.") (license license:bsd-3))) + +(define-public python-parsel + (package + (name "python-parsel") + (version "1.6.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "parsel" version)) + (sha256 + (base32 "0yawf9r3r863lwxj0n89i7h3n8xjbsl5b7n6xg76r68scl5yzvvh")))) + (build-system python-build-system) + (propagated-inputs + (list python-cssselect + python-lxml + python-six + python-w3lib)) + (native-inputs + (list python-pytest python-pytest-runner)) + (home-page "https://github.com/scrapy/parsel") + (synopsis "Extract data from HTML and XML using XPath and CSS selectors") + (description "Parsel is a library to extract and remove data from +HTML and XML using XPath and CSS selectors, optionally combined with +regular expressions.") + (license license:bsd-3))) -- cgit v1.2.3 From f455c1e313ca1cb7cb8d875b9fa00e2b8c5ab3c2 Mon Sep 17 00:00:00 2001 From: Felix Gruber Date: Wed, 20 Apr 2022 17:28:04 +0000 Subject: gnu: Add python-scrapy. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/python-web.scm (python-scrapy): New variable. Signed-off-by: Ludovic Courtès --- gnu/packages/python-web.scm | 59 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index b2fbbc86cd..0f9f1e8786 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6518,3 +6518,62 @@ (define-public python-parsel HTML and XML using XPath and CSS selectors, optionally combined with regular expressions.") (license license:bsd-3))) + +(define-public python-scrapy + (package + (name "python-scrapy") + (version "2.6.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "Scrapy" version)) + (sha256 + (base32 "09rqalbwcz9ix8h0992mzjs50sssxsmmh8w9abkrqchgknjmbzan")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" + ;; requires network access + "--ignore" "tests/test_command_check.py" + "-k" + (string-append + ;; Failing for unknown reasons + "not test_server_set_cookie_domain_suffix_public_private" + " and not test_user_set_cookie_domain_suffix_public_private" + " and not test_pformat") + "tests"))))))) + (propagated-inputs + (list python-botocore ; Optional: For S3FeedStorage class. + python-cryptography + python-cssselect + python-itemadapter + python-itemloaders + python-lxml + python-parsel + python-protego + python-pydispatcher + python-pyopenssl + python-queuelib + python-service-identity + python-setuptools + python-tldextract + python-twisted + python-w3lib + python-zope-interface)) + (native-inputs + (list python-pytest + python-pyftpdlib + python-sybil + python-testfixtures + python-uvloop)) + (home-page "https://scrapy.org") + (synopsis "High-level Web crawling and Web scraping framework") + (description "Scrapy is a fast high-level web crawling and web +scraping framework, used to crawl websites and extract structured data +from their pages. It can be used for a wide range of purposes, from data +mining to monitoring and automated testing.") + (license license:bsd-3))) -- cgit v1.2.3 From cce678ab8258676e929118f15ab7df3d4601546a Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Sun, 10 Apr 2022 14:00:06 -0400 Subject: gnu: python-flask: Update to 2.1.1. * gnu/packages/python-web.scm (python-flask): Update to 2.1.1. [propagated-inputs]: Add python-asgiref and python-importlib-metadata. [home-page]: Update. --- gnu/packages/python-web.scm | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 0f9f1e8786..340f84c78f 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -2991,13 +2991,13 @@ (define-public python-webtest (define-public python-flask (package (name "python-flask") - (version "2.0.2") + (version "2.1.1") (source (origin (method url-fetch) (uri (pypi-uri "Flask" version)) (sha256 (base32 - "1qilnrdakhbw5k951kczdy8ia0wczh0dpp1vi4qhgmfx6klvhbvv")))) + "1j0rjly2yhbm566lq2s8543fs7fz86f77abps539djcfalzbvjd8")))) (build-system python-build-system) (arguments '(#:phases @@ -3009,8 +3009,13 @@ (define-public python-flask (native-inputs (list python-pytest)) (propagated-inputs - (list python-itsdangerous python-jinja2 python-click python-werkzeug)) - (home-page "https://www.palletsprojects.com/p/flask/") + (list python-asgiref ;async extra + python-click + python-importlib-metadata + python-itsdangerous + python-jinja2 + python-werkzeug)) + (home-page "https://palletsprojects.com/p/flask/") (synopsis "Microframework based on Werkzeug, Jinja2 and good intentions") (description "Flask is a micro web framework based on the Werkzeug toolkit and Jinja2 template engine. It is called a micro framework because it does not -- cgit v1.2.3 From 37caa64189b1cd35a806d42fcc9cad7001388164 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Sun, 17 Apr 2022 08:07:00 -0400 Subject: gnu: python-websockets: Update to 10.3 and enable tests. * gnu/packages/python-web.scm (python-websockets): Fetch from git. Update to 10.3. [arguments]: Delete field, enabling tests. --- gnu/packages/python-web.scm | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 340f84c78f..aaa45c5f4c 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -5345,24 +5345,18 @@ (define-public python-warcio (define-public python-websockets (package (name "python-websockets") - (version "8.1") + (version "10.3") (source - (origin - (method url-fetch) - (uri (pypi-uri "websockets" version)) - (sha256 - (base32 - "03s3ml6sbki24aajllf8aily0xzrn929zxi84p50zkkbikdd4raw")))) + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/aaugustin/websockets") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1vk7g5z977mi89hamwiqawpmibwvv9ghrf3pqva1waxmyc7gyjb5")))) (build-system python-build-system) - (arguments - '(#:tests? #f ; Tests not included in release tarball. - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'fix-websockets-package-name-requirement - (lambda* (#:key inputs #:allow-other-keys) - ;; Python package names use dot as separator. - (substitute* "setup.py" - (("websockets/extensions") "websockets.extensions"))))))) (home-page "https://github.com/aaugustin/websockets") (synopsis "Python implementation of the WebSocket Protocol (RFC 6455 & 7692)") -- cgit v1.2.3 From 27c49acf0662b9b1bcad070888d19bcef3ceb27d Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Sun, 17 Apr 2022 09:10:38 -0400 Subject: gnu: Add python-openapi-schema-validator. * gnu/packages/python-web.scm (python-openapi-schema-validator): New variable. --- gnu/packages/python-web.scm | 54 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index aaa45c5f4c..4b7d01052d 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -1429,6 +1429,60 @@ (define-public python-webencodings (define-public python2-webencodings (package-with-python2 python-webencodings)) +(define-public python-openapi-schema-validator + (package + (name "python-openapi-schema-validator") + (version "0.2.3") + (source + (origin + (method git-fetch) ;no tests in pypi release + (uri (git-reference + (url "https://github.com/p1c2u/openapi-schema-validator") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1swm8h74nhg63nxk347blwq9f1qn6iiq3zisndcvm7axkq3pc2df")))) + (build-system python-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-coverage-pytest-options + (lambda _ + (substitute* "pyproject.toml" + (("^--cov.*") "")))) + ;; XXX: PEP 517 manual build copied from python-isort. + (replace 'build + (lambda _ + (invoke "python" "-m" "build" "--wheel" "--no-isolation" "."))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest")))) + (replace 'install + (lambda _ + (let ((whl (car (find-files "dist" "\\.whl$")))) + (invoke "pip" "--no-cache-dir" "--no-input" + "install" "--no-deps" "--prefix" #$output whl))))))) + (native-inputs (list python-poetry-core python-pypa-build python-pytest)) + (propagated-inputs + (list python-isodate + python-jsonschema + python-rfc3339-validator + python-strict-rfc3339)) + (home-page "https://github.com/p1c2u/openapi-schema-validator") + (synopsis "OpenAPI schema validation library for Python") + (description "Openapi-schema-validator is a Python library that validates +a schema against: +@itemize +@item OpenAPI Schema Specification v3.0 which is an extended subset of the +JSON Schema Specification Wright Draft 00. +@item OpenAPI Schema Specification v3.1 which is an extended superset of the +JSON Schema Specification Draft 2020-12. +@end itemize") + (license license:bsd-3))) + (define-public python-openid (package (name "python-openid") -- cgit v1.2.3 From a81161c1a484da7d54626f76f08aa8c3c6fec96b Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Sun, 17 Apr 2022 14:22:02 -0400 Subject: gnu: Add python-openapi-spec-validator. * gnu/packages/python-web.scm (python-openapi-spec-validator): New variable. --- gnu/packages/python-web.scm | 55 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 4b7d01052d..9c026ba53c 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -1483,6 +1483,61 @@ (define-public python-openapi-schema-validator @end itemize") (license license:bsd-3))) +(define-public python-openapi-spec-validator + (package + (name "python-openapi-spec-validator") + (version "0.4.0") + (source + (origin + (method git-fetch) ;no tests in pypi release + (uri (git-reference + (url "https://github.com/p1c2u/openapi-spec-validator") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1q09sjh4hsc0c8yqbd97h5mp6rwh427y6zyn8kv8wljk6sa0fs4q")))) + (build-system python-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-coverage-pytest-options + (lambda _ + (substitute* "pyproject.toml" + (("^--cov.*") "")))) + ;; XXX: PEP 517 manual build copied from python-isort. + (replace 'build + (lambda _ + (invoke "python" "-m" "build" "--wheel" "--no-isolation" "."))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-vv" + ;; The example tests attempt to fetch resources from + ;; the Internet (see: + ;; https://github.com/p1c2u/openapi-spec-validator/issues/151). + "-k" "not Example and not Exampe")))) + (replace 'install + (lambda _ + (let ((whl (car (find-files "dist" "\\.whl$")))) + (invoke "pip" "--no-cache-dir" "--no-input" + "install" "--no-deps" "--prefix" #$output whl))))))) + (native-inputs (list python-poetry-core python-pypa-build python-pytest)) + (propagated-inputs + (list python-jsonschema + python-openapi-schema-validator + python-pyyaml + python-requests + python-setuptools)) + (home-page "https://github.com/p1c2u/openapi-spec-validator") + (synopsis "OpenAPI spec validator") + (description "OpenAPI Spec Validator is a Python library that validates an +OpenAPI specification against the OpenAPI 2.0 (also known as Swagger), OpenAPI +3.0 and OpenAPI 3.1 specifications. The validator aims to check for full +compliance with the specification.") + (license license:asl2.0))) + (define-public python-openid (package (name "python-openid") -- cgit v1.2.3 From c5d5c14101535b0a44ccb5fdfb72fad265702a8b Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Sun, 17 Apr 2022 23:18:30 -0400 Subject: gnu: Add python-cbor2. * gnu/packages/python-web.scm (python-cbor2): New variable. --- gnu/packages/python-web.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 9c026ba53c..36d7fb03f9 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -575,6 +575,46 @@ (define-public python-aws-xray-sdk emit information from within their applications to the AWS X-Ray service.") (license license:asl2.0))) +(define-public python-cbor2 + (package + (name "python-cbor2") + (version "5.4.2.post1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "cbor2" version)) + (sha256 + (base32 "15y78xcc3zkmvj1mdzz8gyhf3apbl91073kwhzbjk5abc1civwlw")))) + (build-system python-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-vv"))))))) + (native-inputs (list python-pytest python-pytest-cov python-setuptools-scm)) + (home-page "https://github.com/agronholm/cbor2") + (synopsis "Concise Binary Object Representation (CBOR) (de)serializer") + (description "This Python library provides encoding and decoding for the +Concise Binary Object +Representation (CBOR) (@url{https://www.rfc-editor.org/rfc/rfc8949.html, RFC +8949}) serialization format. The specification is fully compatible with the +original RFC 7049. Among its features are: +@itemize +@item Simple API like the @code{json} or @code{pickle} modules. +@item Support many CBOR tags with stdlib objects. +@item Generic tag decoding. +@item Shared value references including cyclic references. +@item String references compact encoding with repeated strings replaced with +indices. +@item Optional C module backend tested on big- and little-endian architectures. +@item Extensible tagged value handling using tag_hook and object_hook on +decode and default on encode. +@end itemize") + (license license:expat))) + (define-public python-cfn-lint (package (name "python-cfn-lint") -- cgit v1.2.3 From f17611f3bef3ee28a88b53a74e6e84bcfdbed966 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Mon, 18 Apr 2022 00:07:48 -0400 Subject: gnu: python-httpcore: Update to 0.14.7 and enable tests. * gnu/packages/python-web.scm (python-httpcore): Update to 0.14.7. [tests?]: Delete argument. [phases]{check}: Streamline and delete coverage related pytest options. Strip trailing #t. [native-inputs]: Delete python-autoflake, python-flake8, python-flake8-bugbear, python-flake8-pie and python-mypy. Add python-pytest-httpbin. [propagated-inputs]: Add python-anyio, python-certifi and python-socksio. --- gnu/packages/python-web.scm | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 36d7fb03f9..d658985520 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -5254,7 +5254,7 @@ (define-public python-vf-1 (define-public python-httpcore (package (name "python-httpcore") - (version "0.12.2") + (version "0.14.7") (source (origin ;; PyPI tarball does not contain tests. @@ -5264,34 +5264,31 @@ (define-public python-httpcore (commit version))) (file-name (git-file-name name version)) (sha256 - (base32 "1nrwwfdqjfc2a1k3j41cdwkprwvplf95fwmypdl2aq2qgp3209q0")))) + (base32 "0wdr28vf03l6yxhk8nrvhh7y7x18rqdcfzv1sb6jgzk9zmycrvc7")))) (build-system python-build-system) (arguments - `(#:tests? #f ; Tests hang at 98% - #:phases + `(#:phases (modify-phases %standard-phases (replace 'check - (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (lambda* (#:key tests? #:allow-other-keys) (when tests? - (add-installed-pythonpath inputs outputs) - (invoke "pytest" "-vv" "--cov=httpcore" - "--cov=tests" "tests")) - #t))))) + (invoke "pytest" "-vv" "tests"))))))) (native-inputs - (list python-autoflake - python-flake8 - python-flake8-bugbear - python-flake8-pie - python-isort - python-mypy - python-pytest + (list python-pytest python-pytest-asyncio python-pytest-cov + python-pytest-httpbin python-pytest-trio python-uvicorn python-trustme)) (propagated-inputs - (list python-h11 python-h2 python-sniffio python-trio + (list python-anyio + python-certifi + python-h11 + python-h2 + python-sniffio + python-socksio + python-trio python-trio-typing)) (home-page "https://github.com/encode/httpcore") (synopsis "Minimal, low-level HTTP client") -- cgit v1.2.3 From b9fc4781925fd783c89d8c75ee47cafa2171a78a Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Mon, 18 Apr 2022 00:10:02 -0400 Subject: gnu: Add python-httpcore-bootstrap. * gnu/packages/python-web.scm (python-httpcore-bootstrap): New variable. --- gnu/packages/python-web.scm | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index d658985520..28c2ae9b13 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -5308,6 +5308,14 @@ (define-public python-httpcore @end itemize") (license license:bsd-3))) +;;; Variant used to break a cycle between python-httpx and python-uvicorn. +(define-public python-httpcore-bootstrap + (hidden-package + (package/inherit python-httpcore + (name "python-httpcore-bootstrap") + (arguments (list #:tests? #f)) + (native-inputs '())))) + (define-public python-httpx (package (name "python-httpx") -- cgit v1.2.3 From ef370c850115bcb5f158d4ac1bc386c3df9f7af1 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Mon, 18 Apr 2022 00:10:28 -0400 Subject: gnu: Add python-httpx-bootstrap. * gnu/packages/python-web.scm (python-httpx-bootstrap): New variable. --- gnu/packages/python-web.scm | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 28c2ae9b13..1aa5342e8d 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -5412,6 +5412,17 @@ (define-public python-httpx @end itemize") (license license:bsd-3))) +;;; Variant used to break a cycle with python-uvicorn. +(define-public python-httpx-bootstrap + (hidden-package + (package/inherit python-httpx + (name "python-httpx-bootstrap") + (arguments (list #:tests? #f)) + (native-inputs '()) + (propagated-inputs + (modify-inputs (package-propagated-inputs python-httpx) + (replace "python-httpcore" python-httpcore-bootstrap)))))) + (define-public python-wsgiprox (package (name "python-wsgiprox") -- cgit v1.2.3 From b4c4c2f82e91736bfc623df2b3f61335ec702231 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Mon, 18 Apr 2022 00:10:52 -0400 Subject: gnu: python-httpx: Update to 0.22.0. * gnu/packages/python-web.scm (python-httpx): Update to 0.22.0. [phases]{check}: Add 'asyncio_mode=auto' pytest-asyncio option. Skip the 'test_main' test. [native-inputs]: Delete python-autoflake, python-black, python-cryptography, python-flake8, python-flake8-bugbear, python-flake8-pie, python-isort, python-mypy and python-pytest-cov. [propagated-inputs]: Add python-charset-normalizer. --- 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 1aa5342e8d..3e024b4fae 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -5319,7 +5319,7 @@ (define-public python-httpcore-bootstrap (define-public python-httpx (package (name "python-httpx") - (version "0.16.1") + (version "0.22.0") (source (origin ;; PyPI tarball does not contain tests. @@ -5329,7 +5329,7 @@ (define-public python-httpx (commit version))) (file-name (git-file-name name version)) (sha256 - (base32 "00gmq45fckcqkj910bvd7pyqz1mvgsdvz4s0k7dzbnc5czzq1f4a")))) + (base32 "1awr56488b66zyl3cx1f03lq2n07xdg5kb4l46vnsm59s6hr02c5")))) (build-system python-build-system) (arguments `(#:phases @@ -5337,7 +5337,8 @@ (define-public python-httpx (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? - (invoke "pytest" "-vv" "-k" + (invoke "pytest" "-vv" "-o" "asyncio_mode=auto" + "-k" ;; These tests try to open an outgoing connection. (string-append "not test_connect_timeout" @@ -5347,26 +5348,23 @@ (define-public python-httpx "being_deleted" " and not test_that_send_cause_client_to_be_not_closed" " and not test_async_proxy_close" - " and not test_sync_proxy_close")))))))) + " and not test_sync_proxy_close" + ;; This test is apparently incompatible with + ;; python-click 8, fails with " AttributeError: + ;; 'function' object has no attribute 'name'". + " and not test_main")))))))) (native-inputs - (list python-autoflake - python-black - python-cryptography - python-flake8 - python-flake8-bugbear - python-flake8-pie - python-isort - python-mypy + (list python-cryptography python-pytest python-pytest-asyncio python-pytest-trio - python-pytest-cov python-trio python-trio-typing python-trustme python-uvicorn)) (propagated-inputs - (list python-brotli + (list python-charset-normalizer + python-brotli python-certifi python-chardet python-httpcore -- cgit v1.2.3 From 634a798f51c7c31d882b7888e49697aa0e8f32e4 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Mon, 18 Apr 2022 00:11:32 -0400 Subject: gnu: python-uvicorn: Update to 0.17.6. * gnu/packages/python-web.scm (python-uvicorn): Update to 0.17.6. [phases]{check}: Delete extraneous add-installed-pythonpath and inputs/outputs arguments. Add the '-o' 'asyncio_mode=auto' option to pytest invocation, and skip two tests. [native-inputs]: Add python-httpx-bootstrap and python-pytest-asyncio. [propagated-inputs]: Add python-asgiref and python-dotenv. --- gnu/packages/python-web.scm | 29 +++++++++++++++++++++-------- 1 file changed, 21 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 3e024b4fae..41de186b6f 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -5014,7 +5014,7 @@ (define-public python-httptools (define-public python-uvicorn (package (name "python-uvicorn") - (version "0.13.2") + (version "0.17.6") (source (origin ;; PyPI tarball has no tests. @@ -5024,20 +5024,33 @@ (define-public python-uvicorn (commit version))) (file-name (git-file-name name version)) (sha256 - (base32 "04zgmp9z46k72ay6cz7plga6d3w3a6x41anabm7ramp7jdqf6na9")))) + (base32 "0npwls02nhna2lyw2nksxij16l9agf12c9f42pvxb5yrpi9l16c8")))) (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases (replace 'check - (lambda* (#:key inputs outputs tests? #:allow-other-keys) - (add-installed-pythonpath inputs outputs) - (invoke "pytest" "-vv")))))) + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-vv" "-o" "asyncio_mode=auto" + "-k" + (string-append + ;; These error or fail due to networking. + "not test_keepalive " + "and not test_bind_unix_socket_works_with_" + "reload_or_workers ")))))))) (native-inputs - (list python-pytest python-pytest-mock python-requests - python-trustme python-wsproto)) + (list python-httpx-bootstrap + python-pytest + python-pytest-asyncio + python-pytest-mock + python-requests + python-trustme + python-wsproto)) (propagated-inputs - (list python-click + (list python-asgiref + python-click + python-dotenv python-h11 python-httptools python-pyyaml -- cgit v1.2.3 From 1f5f4cc1a2076ef40121f9e6c858e7c3081c7ef4 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Mon, 18 Apr 2022 00:21:31 -0400 Subject: gnu: Add python-socksio. * gnu/packages/python-web.scm (python-socksio): New variable. --- gnu/packages/python-web.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 41de186b6f..0e837c8180 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6336,6 +6336,27 @@ (define-public python-socks functionality.") (license license:asl2.0))) +(define-public python-socksio + (package + (name "python-socksio") + (version "1.0.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "socksio" version)) + (sha256 + (base32 "1b64j45w35jzhjhnq44bnyad9ydh1iyyd7a6j2c8phxmllyyp2zq")))) + (build-system python-build-system) + (home-page "https://github.com/sethmlarson/socksio") + (synopsis "Sans-I/O implementation of SOCKS4, SOCKS4A, and SOCKS5.") + (description "The @code{socksio} Python module is a client-side sans-I/O +SOCKS proxy implementation. It supports SOCKS4, SOCKS4A, and SOCKS5. +@code{socksio} is a sans-I/O library similar to @code{h11} or @code{h2}; this +means the library itself does not handle the actual sending of the bytes +through the network, it only deals with the implementation details of the +SOCKS protocols. It can be paired with any I/O library.") + (license license:expat))) + (define-public python-azure-nspkg (package (name "python-azure-nspkg") -- cgit v1.2.3 From 0d585039704e9c6848d92f4f85a90dec49049a97 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Mon, 18 Apr 2022 01:35:21 -0400 Subject: gnu: Add python-pecan. * gnu/packages/python-web.scm (python-pecan): New variable. --- gnu/packages/python-web.scm | 47 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 0e837c8180..9e8ae40382 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -5901,6 +5901,53 @@ (define-public python-manuel "Manuel lets you mix and match traditional doctests with custom test syntax.") (license license:asl2.0))) +(define-public python-pecan + (package + (name "python-pecan") + (version "1.4.1") + (source + (origin + (method git-fetch) ;no tests in pypi release + (uri (git-reference + (url "https://github.com/pecan/pecan") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "10lz0cqafx3j24m52vv9ph0bxrzyx6wv2dgz7g9kfm60lhaskqkh")))) + (build-system python-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'relax-requirements + (lambda _ + (substitute* "test-requirements.txt" + ;; Drop extraneous virtualenv requirement. + ((".*virtualenv.*") "")))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-vv" "pecan"))))))) + (native-inputs + (list gunicorn + python-genshi + python-jinja2 + python-pytest + python-sqlalchemy + uwsgi)) + (propagated-inputs + (list python-logutils + python-mako + python-six + python-webob + python-webtest)) + (home-page "http://github.com/pecan/pecan") + (synopsis "WSGI object-dispatching web framework") + (description "This package provides a WSGI object-dispatching web +framework, designed to be lean and fast, with few dependencies.") + (license license:bsd-3))) + (define-public python-persistent (package (name "python-persistent") -- cgit v1.2.3 From e5d34080229393b4f19fe312fbb667b9e3430afa Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Mon, 18 Apr 2022 09:48:12 -0400 Subject: gnu: python-falcon: Update to 3.1.0. * gnu/packages/python-web.scm (python-falcon): Update to 3.1.0. [source]: Use git. Adjust snippet. [phases]{check}: Set HOME and invoke pytests with "-vv". [native-inputs]: Add python-aiofiles, python-cbor2, python-fakeredis, python-httpx, python-pecan, python-pillow, python-pytest-asyncio and python-websockets. [synopsis, description]: Fix indentation. --- gnu/packages/python-web.scm | 50 +++++++++++++++++++++++++++------------------ 1 file changed, 30 insertions(+), 20 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 9e8ae40382..e97630fc14 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -668,14 +668,16 @@ (define-public python-cfn-lint (define-public python-falcon (package (name "python-falcon") - (version "2.0.0") + (version "3.1.0") (source (origin - (method url-fetch) - (uri (pypi-uri "falcon" version)) - (sha256 - (base32 - "1z6mqfv574x6jiawf67ib52g4kk20c2x7xk7wrn1573b8v7r79gf")) + ;; Use git, as there are some test files missing from the PyPI release, + ;; such as 'examples' directory. + (method git-fetch) + (uri (git-reference + (url "https://github.com/falconry/falcon") + (commit version))) + (file-name (git-file-name name version)) (modules '((guix build utils))) (snippet '(begin @@ -683,11 +685,13 @@ (define-public python-falcon (substitute* "setup.py" ((".*falcon\\.vendor\\.mimeparse.*") "")) (substitute* '("falcon/media/handlers.py" - "falcon/request.py") - (("from falcon\\.vendor ") "")) - (substitute* "falcon.egg-info/SOURCES.txt" - (("falcon/vendor.*") "")) - #t)))) + "falcon/request.py" + "tests/test_deps.py") + (("from falcon\\.vendor ") "") + (("mimeparse.mimeparse") "mimeparse")))) + (sha256 + (base32 + "17k31d8avl63xsr6fzvmkxcsm7gnz5dqpgsz65psm1lpc38c79k3")))) (build-system python-build-system) (arguments `(#:phases @@ -697,27 +701,33 @@ (define-public python-falcon ;; Skip orjson, which requires rust to build. (substitute* "tests/test_media_handlers.py" (("== 'CPython") "!= 'CPython")) - (add-installed-pythonpath inputs outputs) - (invoke "pytest" "--ignore" "falcon")))))) + (setenv "HOME" "/tmp") + (invoke "pytest" "-vv" "tests")))))) (propagated-inputs (list python-mimeparse)) (native-inputs - (list python-cython ;for faster binaries + (list python-aiofiles + python-cbor2 + python-cython ;for faster binaries + python-fakeredis + python-httpx python-mujson python-msgpack + python-pecan + python-pillow python-pytest + python-pytest-asyncio python-pytest-runner python-pyyaml python-rapidjson python-requests python-testtools - python-ujson)) + python-ujson + python-websockets)) (home-page "https://falconframework.org") - (synopsis - "Web framework for building APIs and application backends") - (description - "Falcon is a web API framework for building microservices, application -backends and higher-level frameworks. Among its features are: + (synopsis "Web framework for building APIs and application backends") + (description "Falcon is a web API framework for building microservices, +application backends and higher-level frameworks. Among its features are: @itemize @item Optimized and extensible code base @item Routing via URI templates and REST-inspired resource -- cgit v1.2.3 From 3f9eafbedd5a9c833aed1954f8ad18b3a7699222 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Mon, 18 Apr 2022 11:57:03 -0400 Subject: gnu: Add python-openapi-core. * gnu/packages/python-web.scm (python-openapi-core): New variable. --- gnu/packages/python-web.scm | 65 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index e97630fc14..9836e81f6c 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -1588,6 +1588,71 @@ (define-public python-openapi-spec-validator compliance with the specification.") (license license:asl2.0))) +(define-public python-openapi-core + (package + (name "python-openapi-core") + (version "0.14.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/p1c2u/openapi-core") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1npsibyf8zx6z230yl19kyap8g25kqvgm7z1w6rm6jxv58yqsp7r")))) + (build-system python-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-vv" "tests/unit" + ;; Ignore Pytest configuration in setup.cfg that adds + ;; unwanted flake8 and coverage options. + "-c" "/dev/null" + ;; This tests fails due to changes in Pytest; fixed + ;; but not yet released upstream + ;; (https://github.com/p1c2u/openapi-core/issues/158). + "-k" "not test_string_format_invalid_value"))))))) + (native-inputs (list python-django + python-falcon + python-flask + python-poetry-core + python-pypa-build + python-pytest + python-responses)) + (propagated-inputs + (list python-attrs + python-dictpath + python-isodate + python-jsonschema + python-lazy-object-proxy + python-more-itertools + python-openapi-schema-validator + python-openapi-spec-validator + python-parse + python-six + python-werkzeug)) + (home-page "https://github.com/p1c2u/openapi-core") + (synopsis "OpenAPI core library") + (description "Openapi-core is a Python library that adds client-side and +server-side support for the OpenAPI Specification v3. It has features such +as: +@itemize +@item Validation of requests and responses +@item Schema casting and unmarshalling +@item Media type and parameters deserialization +@item Security providers (API keys, Cookie, Basic and Bearer HTTP +authentications) +@item Custom deserializers and formats +@item Integration with libraries and frameworks. +@end itemize") + (license license:bsd-3))) + (define-public python-openid (package (name "python-openid") -- cgit v1.2.3 From bfe7f4065095fde94a44b511ae74186a2dbe880f Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Mon, 18 Apr 2022 13:40:35 -0400 Subject: gnu: python-hypothesis-6.23: Update to 6.43.3. * gnu/packages/check.scm (python-hypothesis-6.23): Update to 6.43.3 and rename to... (python-hypothesis-next): ... this. [propagated-inputs]: Add python-pytest. * gnu/packages/matrix.scm (python-matrix-nio): Adjust accordingly. * gnu/packages/python-web.scm (python-h2): Likewise. * gnu/packages/check.scm (python-hypothesis)[home-page]: Update URL. --- gnu/packages/check.scm | 12 ++++++++---- gnu/packages/matrix.scm | 2 +- gnu/packages/python-web.scm | 2 +- 3 files changed, 10 insertions(+), 6 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index 957d7a4262..8e6576208c 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -2174,20 +2174,24 @@ (define-public python-hypothesis much larger range of examples than you would ever want to write by hand. It’s based on the Haskell library, Quickcheck, and is designed to integrate seamlessly into your existing Python unit testing work flow.") - (home-page "https://github.com/HypothesisWorks/hypothesis-python") + (home-page "https://github.com/HypothesisWorks/hypothesis") (license license:mpl2.0) (properties `((python2-variant . ,(delay python2-hypothesis)))))) -(define-public python-hypothesis-6.23 +;;; TODO: Make the default python-hypothesis in the next rebuild cycle. +(define-public python-hypothesis-next (package (inherit python-hypothesis) - (version "6.23.4") + (version "6.43.3") (source (origin (method url-fetch) (uri (pypi-uri "hypothesis" version)) (sha256 (base32 - "0wp8i9qmd5wl1sq1l2b97fgliyk5fyphssl6j7q5qn5zjlfgi4qs")))))) + "0d67dlc5a47i48fxzmji2mnybzby0h1wdscmj54555fghcyp1045")))) + (propagated-inputs + (modify-inputs (package-propagated-inputs python-hypothesis) + (append python-pytest))))) ;to satisfy the sanity-check phase ;; This is the last version of Hypothesis that supports Python 2. (define-public python2-hypothesis diff --git a/gnu/packages/matrix.scm b/gnu/packages/matrix.scm index 5f94eb2075..9ac999b5fd 100644 --- a/gnu/packages/matrix.scm +++ b/gnu/packages/matrix.scm @@ -187,7 +187,7 @@ (define-public python-matrix-nio (native-inputs `(("python-pytest" ,python-pytest-6) ("python-hyperframe" ,python-hyperframe) - ("python-hypothesis" ,python-hypothesis-6.23) + ("python-hypothesis" ,python-hypothesis-next) ("python-hpack" ,python-hpack) ("python-faker" ,python-faker) ("python-pytest-aiohttp" ,python-pytest-aiohttp) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 9836e81f6c..89b688da32 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -1114,7 +1114,7 @@ (define-public python-h2 (add-installed-pythonpath inputs outputs) (invoke "python" "-m" "pytest" "-vv" "test"))))))) (native-inputs - (list python-hypothesis-6.23 python-pytest)) + (list python-hypothesis-next python-pytest)) (propagated-inputs (list python-hpack python-hyperframe)) (home-page "https://github.com/python-hyper/h2") -- cgit v1.2.3 From dff469209e14b867b1f3f6e946526b4654cc4d08 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Wed, 20 Apr 2022 01:26:34 -0400 Subject: gnu: python-flask-wtf: Update to 1.0.1. * gnu/packages/python-web.scm (python-flask-wtf): Update to 1.0.1. [propagated-inputs]: Remove python-flask-babel and python-babel. Add python-flask and python-itsdangerous. --- gnu/packages/python-web.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 89b688da32..f98f824daa 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -3249,14 +3249,14 @@ (define-public python-flask (define-public python-flask-wtf (package (name "python-flask-wtf") - (version "0.14.3") + (version "1.0.1") (source (origin (method url-fetch) (uri (pypi-uri "Flask-WTF" version)) (sha256 (base32 - "086pvg2x69n0nczcq7frknfjd8am1zdy8qqpva1sanwb02hf65yl")))) + "1jd614662r6ifh4svs8zfwm4k8bal5z3n6pq607bas8gxrpmrzil")))) (build-system python-build-system) (arguments '(#:phases @@ -3265,7 +3265,7 @@ (define-public python-flask-wtf (lambda _ (invoke "pytest" "-vv")))))) (propagated-inputs - (list python-flask-babel python-babel python-wtforms)) + (list python-flask python-itsdangerous python-wtforms)) (native-inputs (list python-pytest)) (home-page "https://github.com/lepture/flask-wtf") -- cgit v1.2.3 From 7d882da0ebdb64b7d0dbdfe964bc75d3274a3265 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Wed, 20 Apr 2022 01:47:20 -0400 Subject: gnu: python-flask-login: Update to 0.6.0. * gnu/packages/python-web.scm (python-flask-login): Update to 0.6.0. [arguments]: New field. [native-inputs]: Remove python-coverage, python-pycodestyle and python-pyflakes. --- gnu/packages/python-web.scm | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index f98f824daa..094ec10e4b 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -3837,7 +3837,7 @@ (define-public python-jsmin (define-public python-flask-login (package (name "python-flask-login") - (version "0.5.0") + (version "0.6.0") (source (origin (method git-fetch) @@ -3846,17 +3846,21 @@ (define-public python-flask-login (commit version))) (file-name (git-file-name name version)) (sha256 - (base32 "11ac924w0y4m0kf3mxnxdlidy88jfa7njw5yyrq16dvnx4iwd8gg")))) + (base32 "12yw01ccgjn9c88cbkrd6k1ykjxd8fxip2b1isvxjirphnlqhn9g")))) (build-system python-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-vv" "-c" "/dev/null"))))))) (propagated-inputs (list python-flask)) (native-inputs ;; For tests. (list python-blinker - python-coverage python-mock - python-pycodestyle - python-pyflakes python-pytest python-semantic-version python-werkzeug)) -- cgit v1.2.3 From f6b001be16ab7f35bcdb2e5bfac5cbcb11e09ffb Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Wed, 27 Apr 2022 09:48:24 +0200 Subject: gnu: Add python-sanic-routing. * gnu/packages/python-web.scm (python-sanic-routing): New variable. Signed-off-by: Maxim Cournoyer --- gnu/packages/python-web.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 094ec10e4b..ff0f961849 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6341,6 +6341,27 @@ (define-public python-hstspreload as a Python package.") (license license:bsd-3))) +(define-public python-sanic-routing + (package + (name "python-sanic-routing") + (version "0.7.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "sanic-routing" version)) + (sha256 + (base32 "0k9paln0jd4sc2bklp977c82n29pk12wiv726siplkh57y5yi70k")))) + (build-system python-build-system) + (arguments + ;; PyPi sources does not contain tests, recursive dependency on + ;; python-sanic. + (list #:tests? #f)) + (home-page "https://github.com/sanic-org/sanic-routing/") + (synopsis "Routing component for Sanic") + (description "Internal package for @code{python-sanic}, which provides +the @code{BasicRouter}.") + (license license:expat))) + (define-public python-sanic (package (name "python-sanic") -- cgit v1.2.3 From 207065aa6e2eedbbded0f69743b25f61d9b0ca4a Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Wed, 27 Apr 2022 09:49:13 +0200 Subject: gnu: Add python-sanic-bootstrap. * gnu/packages/python-web.scm (python-sanic-bootstrap): New variable. Signed-off-by: Maxim Cournoyer --- gnu/packages/python-web.scm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index ff0f961849..574b7958cb 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6424,6 +6424,13 @@ (define-public python-sanic your code non-blocking and speedy.") (license license:expat))) +(define-public python-sanic-bootstrap + (package + (inherit python-sanic) + (name "python-sanic-bootstrap") + (arguments (list #:tests? #f)) + (native-inputs '()))) + (define-public python-socketio (package (name "python-socketio") -- cgit v1.2.3 From 7acd0122307016477293df878d775d0b79eaeb34 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Wed, 27 Apr 2022 09:50:22 +0200 Subject: gnu: Add python-sanic-testing. * gnu/packages/python-web.scm (python-sanic-testing): New variable. Signed-off-by: Maxim Cournoyer --- gnu/packages/python-web.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 574b7958cb..8b6d454780 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6362,6 +6362,30 @@ (define-public python-sanic-routing the @code{BasicRouter}.") (license license:expat))) +(define-public python-sanic-testing + (package + (name "python-sanic-testing") + (version "22.3.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "sanic-testing" version)) + (sha256 + (base32 "1vkgi9d3xyik507j4jy9s74mkl81hgx3c2d5y3aa1av9h6wjjivp")))) + (build-system python-build-system) + (arguments + ;; PyPi sources does not contain tests, recursive dependency on + ;; python-sanic. + (list #:tests? #f)) + (propagated-inputs (list python-httpx python-sanic-bootstrap + python-websockets)) + (home-page "https://github.com/sanic-org/sanic-testing/") + (synopsis "Test clients for Sanic") + (description "Internal package for @code{python-sanic}, which is +meant to be the core testing utility and clients for testing Sanic +applications.") + (license license:expat))) + (define-public python-sanic (package (name "python-sanic") -- cgit v1.2.3 From 93baba64753d4f8543b38a3a6092b7a71b79b246 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Wed, 27 Apr 2022 09:51:09 +0200 Subject: gnu: python-sanic: Update to 21.12.1. * gnu/packages/python-web.scm (python-sanic): Update to 21.12.1. [arguments]<#:phases>: Remove 'use-recent-pytest, update skipped tests in 'check. [propagated-inputs]: Remove python-httpx, replace python-multidict with python-multidict-5, add python-sanic-routing. [native-inputs]: Add python-bandit, python-chardet, python-isort and python-sanic-testing. Remove python-hstspreload, python-httpcore, python-pytest-cov and python-urllib3. Signed-off-by: Maxim Cournoyer --- gnu/packages/python-web.scm | 51 ++++++++++++++++++++++++--------------------- 1 file changed, 27 insertions(+), 24 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 8b6d454780..7636931091 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -86,6 +86,7 @@ (define-module (gnu packages python-web) #:use-module (gnu packages libevent) #:use-module (gnu packages libffi) #:use-module (gnu packages node) + #:use-module (gnu packages openstack) #:use-module (gnu packages pcre) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) @@ -6389,53 +6390,55 @@ (define-public python-sanic-testing (define-public python-sanic (package (name "python-sanic") - (version "20.12.4") + ;; We provide the latest LTS version of python-sanic. + (version "21.12.1") (source (origin (method url-fetch) (uri (pypi-uri "sanic" version)) (sha256 (base32 - "0axfc151s7nrykzypzciyvkxxrs5ayx8kxv4r620hjb9w3jjhfnp")))) + "0b8mcd1q9qkwcv2qz8nlyaacs0bp7a1l31sdq2m8hhkxykzfq5bg")))) (build-system python-build-system) (arguments - '(#:phases - (modify-phases %standard-phases - (add-after 'unpack 'use-recent-pytest - ;; Allow using recent dependencies. - (lambda* (#:key inputs #:allow-other-keys) - (substitute* "setup.py" - (("pytest==5.2.1") "pytest") - (("multidict>=5.0,<6.0") "multidict") - (("httpx==0\\.15\\.4") "httpx")) - #t)) - (replace 'check - (lambda* (#:key inputs outputs #:allow-other-keys) - (add-installed-pythonpath inputs outputs) - (invoke "pytest" "-vv" "./tests" "-k" - (string-append "not test_zero_downtime " - "and not test_gunicorn_worker " - "and not test_logo_"))))))) + (list + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-vv" "./tests" "-k" + (string-append + ;; PyPi sources lack examples module. + "not test_gunicorn_" + ;; Does not expect brotli and reordered headers. + " and not test_raw_headers" + ;; These look like buggy testcases. + " and not test_zero_downtime" + " and not test_non_default_uvloop_config_raises_warning" + " and not test_listeners_triggered" + " and not test_keep_alive_connection_context" + " and not test_keep_alive_client_timeout")))))))) (propagated-inputs (list python-aiofiles python-httptools - python-httpx python-multidict + python-sanic-routing python-ujson python-uvloop python-websockets)) (native-inputs (list gunicorn + python-bandit python-beautifulsoup4 - python-hstspreload - python-httpcore + python-chardet + python-isort python-pytest - python-pytest-cov python-pytest-benchmark python-pytest-sanic python-pytest-sugar python-pytest-asyncio - python-urllib3 + python-sanic-testing python-uvicorn)) (home-page "https://github.com/sanic-org/sanic/") -- cgit v1.2.3 From 894b89c17bef61eec61e96f9c5acdd749aec119b Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Wed, 18 May 2022 10:24:21 -0400 Subject: gnu: python-scrapy: Fix indentation * gnu/packages/python-web.scm (python-scrapy): Fix indentation. --- gnu/packages/python-web.scm | 84 ++++++++++++++++++++++----------------------- 1 file changed, 42 insertions(+), 42 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 7636931091..aa510b57b7 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6901,52 +6901,52 @@ (define-public python-scrapy (name "python-scrapy") (version "2.6.1") (source - (origin - (method url-fetch) - (uri (pypi-uri "Scrapy" version)) - (sha256 - (base32 "09rqalbwcz9ix8h0992mzjs50sssxsmmh8w9abkrqchgknjmbzan")))) + (origin + (method url-fetch) + (uri (pypi-uri "Scrapy" version)) + (sha256 + (base32 "09rqalbwcz9ix8h0992mzjs50sssxsmmh8w9abkrqchgknjmbzan")))) (build-system python-build-system) (arguments `(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (invoke "pytest" - ;; requires network access - "--ignore" "tests/test_command_check.py" - "-k" - (string-append - ;; Failing for unknown reasons - "not test_server_set_cookie_domain_suffix_public_private" - " and not test_user_set_cookie_domain_suffix_public_private" - " and not test_pformat") - "tests"))))))) - (propagated-inputs - (list python-botocore ; Optional: For S3FeedStorage class. - python-cryptography - python-cssselect - python-itemadapter - python-itemloaders - python-lxml - python-parsel - python-protego - python-pydispatcher - python-pyopenssl - python-queuelib - python-service-identity - python-setuptools - python-tldextract - python-twisted - python-w3lib - python-zope-interface)) + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" + ;; requires network access + "--ignore" "tests/test_command_check.py" + "-k" + (string-append + ;; Failing for unknown reasons + "not test_server_set_cookie_domain_suffix_public_private" + " and not test_user_set_cookie_domain_suffix_public_private" + " and not test_pformat") + "tests"))))))) + (propagated-inputs + (list python-botocore ; Optional: For S3FeedStorage class. + python-cryptography + python-cssselect + python-itemadapter + python-itemloaders + python-lxml + python-parsel + python-protego + python-pydispatcher + python-pyopenssl + python-queuelib + python-service-identity + python-setuptools + python-tldextract + python-twisted + python-w3lib + python-zope-interface)) (native-inputs - (list python-pytest - python-pyftpdlib - python-sybil - python-testfixtures - python-uvloop)) + (list python-pytest + python-pyftpdlib + python-sybil + python-testfixtures + python-uvloop)) (home-page "https://scrapy.org") (synopsis "High-level Web crawling and Web scraping framework") (description "Scrapy is a fast high-level web crawling and web -- cgit v1.2.3 From 1c4241d91515b75d4dab160be6b2ad840ceb6335 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Wed, 18 May 2022 10:25:14 -0400 Subject: gnu: python-scrapy: Parallelize test suite. * gnu/packages/python-web.scm (python-scrapy)[phases]{check}: Run in parallel. Disable problematic (when run in parallel) tests. Use complete sentences for comments. [native-inputs]: Add python-pytest-xdist. [description]: Use double space between sentences. --- gnu/packages/python-web.scm | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index aa510b57b7..2a688b53df 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6914,11 +6914,17 @@ (define-public python-scrapy (lambda* (#:key tests? #:allow-other-keys) (when tests? (invoke "pytest" - ;; requires network access + "-n" (number->string (parallel-job-count)) + ;; These tests fail when run in parallel (see: + ;; https://github.com/scrapy/scrapy/issues/5502). + "--ignore" "tests/test_engine.py" + "--ignore" "tests/test_engine_stop_download_bytes.py" + "--ignore" "tests/test_engine_stop_download_headers.py" + ;; This test require network access. "--ignore" "tests/test_command_check.py" "-k" (string-append - ;; Failing for unknown reasons + ;; The followin tests fail for unknown reasons. "not test_server_set_cookie_domain_suffix_public_private" " and not test_user_set_cookie_domain_suffix_public_private" " and not test_pformat") @@ -6943,6 +6949,7 @@ (define-public python-scrapy python-zope-interface)) (native-inputs (list python-pytest + python-pytest-xdist python-pyftpdlib python-sybil python-testfixtures @@ -6951,6 +6958,6 @@ (define-public python-scrapy (synopsis "High-level Web crawling and Web scraping framework") (description "Scrapy is a fast high-level web crawling and web scraping framework, used to crawl websites and extract structured data -from their pages. It can be used for a wide range of purposes, from data +from their pages. It can be used for a wide range of purposes, from data mining to monitoring and automated testing.") (license license:bsd-3))) -- cgit v1.2.3 From 1f50f11aefe0fb1937cb15d4e327e0ffd94071d7 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 20 May 2022 09:48:45 +0200 Subject: gnu: python-google: Add missing input. * gnu/packages/python-web.scm (python-google)[propagated-inputs]: Add python-beautifulsoup4. --- gnu/packages/python-web.scm | 49 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 2a688b53df..ed047a7faa 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -4494,6 +4494,8 @@ (define-public python-google (build-system python-build-system) (arguments `(#:tests? #f)) ; There are no tests. + (propagated-inputs + (list python-beautifulsoup4)) (home-page "https://breakingcode.wordpress.com/") (synopsis "Python bindings to the Google search engine") (description "This package provides Python bindings for using the @@ -6538,6 +6540,53 @@ (define-public python-socksio SOCKS protocols. It can be paired with any I/O library.") (license license:expat))) +(define-public python-msrest + (package + (name "python-msrest") + (version "0.6.21") + (source + (origin + (method url-fetch) + (uri (pypi-uri "msrest" version)) + (sha256 + (base32 "1n389m3hcsyjskzimq4j71nyw9pjkrp0n5wg1q2c4bfwpv3inrkj")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" + "-k" + ;; These attempt to connect to bing.com. + (string-append + "not test_basic_aiohttp" + " and not test_basic_async_requests" + " and not test_conf_async_requests" + " and not test_conf_async_trio_requests" + " and not test_basic_aiohttp" + " and not test_basic_async_requests" + " and not test_conf_async_requests" + " and not test_conf_async_trio_requests")))))))) + (propagated-inputs + (list python-aiohttp + python-certifi + python-isodate + python-requests + python-requests-oauthlib)) + (native-inputs + (list python-httpretty + python-pytest + python-pytest-aiohttp + python-pytest-asyncio + python-pytest-trio)) + (home-page "https://github.com/Azure/msrest-for-python") + (synopsis "AutoRest swagger generator Python client runtime.") + (description "This package provides the runtime library @code{msrest} for +AutoRest-generated Python clients.") + (license license:expat))) + (define-public python-azure-nspkg (package (name "python-azure-nspkg") -- cgit v1.2.3 From 78280e2e4a749a980886b71a5ac911193c370267 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 20 May 2022 11:15:39 +0200 Subject: gnu: Add python-azure-common. * gnu/packages/python-web.scm (python-azure-common): New variable. --- gnu/packages/python-web.scm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index ed047a7faa..5c03ec1544 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6627,6 +6627,25 @@ (define-public python-azure-storage-nspkg communicate with Microsoft Azure Storage services.") (license license:expat))) +(define-public python-azure-common + (package + (name "python-azure-common") + (version "1.1.28") + (source + (origin + (method url-fetch) + (uri (pypi-uri "azure-common" version ".zip")) + (sha256 + (base32 "18q4cy1xl2zly3rk7a1sc14w932x59r8c9j4d8dnlsz32hrcvh2a")))) + (build-system python-build-system) + (propagated-inputs (list python-azure-nspkg)) + (native-inputs (list unzip)) + (home-page "https://github.com/Azure/azure-sdk-for-python") + (synopsis "Microsoft Azure Client library for Python") + (description "This package provides the Microsoft Azure Client library for +Python.") + (license license:expat))) + (define-public python-w3lib (package (name "python-w3lib") -- cgit v1.2.3 From c2bb0beef7d67f56aaa35f6d0969084b999bdd30 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 20 May 2022 11:39:51 +0200 Subject: gnu: Add python-azure-core. * gnu/packages/python-web.scm (python-azure-core): New variable. --- gnu/packages/python-web.scm | 67 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 5c03ec1544..eb94cb3de6 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6646,6 +6646,73 @@ (define-public python-azure-common Python.") (license license:expat))) +(define-public python-azure-core + (package + (name "python-azure-core") + (version "1.24.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "azure-core" version ".zip")) + (sha256 + (base32 "1r8bpn3zz02mj00qbaks5qq49wqd3mznkm90bchd1mxa3w21nnrl")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + ;; This fails because devtools_testutils doesn't exist. + (delete-file "tests/test_connection_string_parsing.py") + ;; Needs network. + (for-each delete-file + '("tests/async_tests/test_streaming_async.py" + "tests/test_streaming.py")) + (add-installed-pythonpath inputs outputs) + (setenv "PYTHONPATH" + (string-append (getcwd) "/tests/testserver_tests/coretestserver:" + (getenv "GUIX_PYTHONPATH"))) + (invoke "pytest" + ;; Most of these need network access. + "-m" "not asyncio and not live_test_only" + "-k" + ;; These need network access. + (string-append + "not test_example_raw_response_hook" + " and not test_example_headers_policy" + " and not test_example_request_id_policy" + " and not test_example_user_agent_policy" + " and not test_example_requests" + " and not test_example_pipeline" + " and not test_example_pipeline_client" + " and not test_example_redirect_policy" + " and not test_example_no_redirects" + " and not test_example_retry_policy" + " and not test_example_no_retries" + " and not test_decompress_plain_no_header" + " and not test_compress_plain_no_header" + " and not test_decompress_compressed_no_header")))))))) + (propagated-inputs + (list python-aiohttp + python-requests + python-six + python-trio + python-typing-extensions)) + (native-inputs + (list python-flask + python-msrest + python-pytest + python-pytest-aiohttp + python-pytest-asyncio + python-pytest-trio + unzip)) + (home-page "https://github.com/Azure/azure-sdk-for-python") + (synopsis "Microsoft Azure Core library for Python") + (description "This package provides the Microsoft Azure Core library for +Python.") + (license license:expat))) + (define-public python-w3lib (package (name "python-w3lib") -- cgit v1.2.3 From da88e39ce0d9a7aaae36a7a5fe8706ab15cde18e Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 20 May 2022 11:44:52 +0200 Subject: gnu: Add python-azure-storage-blob. * gnu/packages/python-web.scm (python-azure-storage-blob): New variable. --- gnu/packages/python-web.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index eb94cb3de6..689a99b518 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6713,6 +6713,26 @@ (define-public python-azure-core Python.") (license license:expat))) +(define-public python-azure-storage-blob + (package + (name "python-azure-storage-blob") + (version "12.12.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "azure-storage-blob" version ".zip")) + (sha256 + (base32 "1xv23ph822qywjxs81say9xi5dzmvxcii6sww6d1hvd83iyz1npn")))) + (build-system python-build-system) + (propagated-inputs + (list python-azure-core python-cryptography python-msrest)) + (native-inputs (list unzip)) + (home-page "https://github.com/Azure/azure-sdk-for-python/") + (synopsis "Microsoft Azure Blob Storage client library for Python") + (description "This package provides the Microsoft Azure Blob Storage +Client Library for Python.") + (license license:expat))) + (define-public python-w3lib (package (name "python-w3lib") -- cgit v1.2.3 From 97d9741f0be56d4a2860dc8620b56f859aefefee Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 20 May 2022 13:04:25 +0200 Subject: gnu: Add python-google-crc32c. * gnu/packages/python-web.scm (python-google-crc32c): New variable. --- gnu/packages/python-web.scm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 689a99b518..04cf3b5e3c 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6733,6 +6733,25 @@ (define-public python-azure-storage-blob Client Library for Python.") (license license:expat))) +(define-public python-google-crc32c + (package + (name "python-google-crc32c") + (version "1.3.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "google-crc32c" version)) + (sha256 + (base32 "1ps4qaccij6cixs91772y9f9r1n702yfzy4qqmds6x5h7qkycv97")))) + (build-system python-build-system) + (native-inputs (list python-pytest)) + (home-page "https://github.com/googleapis/python-crc32c") + (synopsis "Python wrapper of Google CRC32C") + (description + "This package provides a Python wrapper of the C library implementation +of the CRC32C hashing algorithm.") + (license license:asl2.0))) + (define-public python-w3lib (package (name "python-w3lib") -- cgit v1.2.3 From c63164188fc893c9500c4c953c808d24c12b6894 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 20 May 2022 13:18:56 +0200 Subject: gnu: Add python-googleapis-common-protos. * gnu/packages/python-web.scm (python-googleapis-common-protos): New variable. --- gnu/packages/python-web.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 04cf3b5e3c..51e03ed56f 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -88,6 +88,7 @@ (define-module (gnu packages python-web) #:use-module (gnu packages node) #:use-module (gnu packages openstack) #:use-module (gnu packages pcre) + #:use-module (gnu packages protobuf) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages python-build) @@ -6752,6 +6753,34 @@ (define-public python-google-crc32c of the CRC32C hashing algorithm.") (license license:asl2.0))) +(define-public python-googleapis-common-protos + (package + (name "python-googleapis-common-protos") + (version "1.56.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "googleapis-common-protos" version)) + (sha256 + (base32 "16x1pjc34mrj9w130j40r23ndpykhsqivvk5xfl63ss6qsfyapkb")))) + (build-system python-build-system) + (arguments + `(#:tests? #false ;fails for unknown reasons + #:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest"))))))) + (propagated-inputs (list python-protobuf)) + (native-inputs + (list python-pytest)) + (home-page "https://github.com/googleapis/python-api-common-protos") + (synopsis "Common protobufs used in Google APIs") + (description "This package contains Python classes generated from the +common protos in the @code{googleapis/api-common-protos} repository.") + (license license:asl2.0))) + (define-public python-w3lib (package (name "python-w3lib") -- cgit v1.2.3 From 359e2db4b2543425ca526162264d60a08cd2e368 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 20 May 2022 13:21:54 +0200 Subject: gnu: Add python-google-auth. * gnu/packages/python-web.scm (python-google-auth): New variable. --- gnu/packages/python-web.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 51e03ed56f..46e7e28615 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6753,6 +6753,46 @@ (define-public python-google-crc32c of the CRC32C hashing algorithm.") (license license:asl2.0))) +(define-public python-google-auth + (package + (name "python-google-auth") + (version "2.6.6") + (source + (origin + (method url-fetch) + (uri (pypi-uri "google-auth" version)) + (sha256 + (base32 "04ikassansqkkw4pa98in7q9r4z001m6bi2r3ssxwwrb0f79790v")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest"))))))) + (propagated-inputs + (list python-cachetools + python-cryptography + python-pyasn1-modules + python-rsa + python-six)) + (native-inputs + (list python-flask + python-freezegun + python-oauth2client + python-pyopenssl + python-pytest + python-pytest-localserver + python-pyu2f + python-requests + python-responses)) + (home-page "https://github.com/googleapis/google-auth-library-python") + (synopsis "Google Authentication Library") + (description "This library simplifies using Google's various +server-to-server authentication mechanisms to access Google APIs.") + (license license:asl2.0))) + (define-public python-googleapis-common-protos (package (name "python-googleapis-common-protos") -- cgit v1.2.3 From 0873ab4d54f169c32d04cc2a2df92426e748f546 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 20 May 2022 13:24:02 +0200 Subject: gnu: Add python-google-resumable-media. * gnu/packages/python-web.scm (python-google-resumable-media): New variable. --- gnu/packages/python-web.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 46e7e28615..7f50ede8bf 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6793,6 +6793,38 @@ (define-public python-google-auth server-to-server authentication mechanisms to access Google APIs.") (license license:asl2.0))) +(define-public python-google-resumable-media + (package + (name "python-google-resumable-media") + (version "2.3.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "google-resumable-media" version)) + (sha256 + (base32 "04qm6rd4mpbbym8ci5xrb6fymc3mmm8x2z9f43q5iwbr3s5lx4h6")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + ;; The system tests fail to find test_utils.retry. + (delete-file-recursively "tests/system/") + (invoke "pytest"))))))) + (propagated-inputs (list python-google-crc32c)) + (native-inputs + (list python-google-auth + python-pytest + python-requests + python-test-utils)) + (home-page "https://github.com/googleapis/google-resumable-media-python") + (synopsis "Utilities for Google Media Downloads and Resumable Uploads") + (description "This package provides utilities for Google Media Downloads +and Resumable Uploads.") + (license license:asl2.0))) + (define-public python-googleapis-common-protos (package (name "python-googleapis-common-protos") -- cgit v1.2.3 From e41ca0a49a2c9b73a6bf54202b91aaf3be701863 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 20 May 2022 13:32:10 +0200 Subject: gnu: Add python-google-api-core. * gnu/packages/python-web.scm (python-google-api-core): New variable. --- gnu/packages/python-web.scm | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 7f50ede8bf..df6c3f3e40 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6853,6 +6853,45 @@ (define-public python-googleapis-common-protos common protos in the @code{googleapis/api-common-protos} repository.") (license license:asl2.0))) +(define-public python-google-api-core + (package + (name "python-google-api-core") + (version "2.7.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "google-api-core" version)) + (sha256 + (base32 "0ydwvg9gzp75cd11s62db5w3jhj643yrw095rv95psfb0h3pz58p")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + ;; These don't work because it doesn't find AsyncMock even when + ;; we add it to the inputs. + (for-each delete-file + '("tests/asyncio/test_page_iterator_async.py" + "tests/asyncio/test_retry_async.py")) + (invoke "pytest"))))))) + (propagated-inputs + (list python-google-auth + python-googleapis-common-protos + python-protobuf + python-proto-plus + python-requests)) + (native-inputs + (list python-mock + python-pytest + python-pytest-asyncio)) + (home-page "https://github.com/googleapis/python-api-core") + (synopsis "Google API client core library") + (description "This library defines common helpers used by all Google API +clients.") + (license license:asl2.0))) + (define-public python-w3lib (package (name "python-w3lib") -- cgit v1.2.3 From 6934f094a627a0e663db15f6eab2a0c97d104ad1 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 20 May 2022 13:40:39 +0200 Subject: gnu: Add python-google-cloud-core. * gnu/packages/python-web.scm (python-google-cloud-core): New variable. --- gnu/packages/python-web.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index df6c3f3e40..e49653441b 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -97,6 +97,7 @@ (define-module (gnu packages python-web) #:use-module (gnu packages python-science) #:use-module (gnu packages python-xyz) #:use-module (gnu packages qt) + #:use-module (gnu packages rpc) #:use-module (gnu packages serialization) #:use-module (gnu packages sphinx) #:use-module (gnu packages texinfo) @@ -6892,6 +6893,33 @@ (define-public python-google-api-core clients.") (license license:asl2.0))) +(define-public python-google-cloud-core + (package + (name "python-google-cloud-core") + (version "2.3.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "google-cloud-core" version)) + (sha256 + (base32 "0sa66kidgr32dfq9ngha9l362xnqvnqqmssn5my1gd3lc6g65apx")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest"))))))) + (propagated-inputs (list python-google-api-core python-google-auth)) + (native-inputs + (list python-grpcio python-pytest)) + (home-page "https://github.com/googleapis/python-cloud-core") + (synopsis "Google Cloud API client core library") + (description "This library defines common helpers (e.g. base @code{Client} +classes) used by all of the @code{google-cloud-*} packages.") + (license license:asl2.0))) + (define-public python-w3lib (package (name "python-w3lib") -- cgit v1.2.3 From 1aaeff86501cd38cb903f3c6c2b288f652c3bd5d Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 20 May 2022 13:43:07 +0200 Subject: gnu: Add python-google-cloud-storage. * gnu/packages/python-web.scm (python-google-cloud-storage): New variable. --- gnu/packages/python-web.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index e49653441b..f3cd3e521b 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6920,6 +6920,47 @@ (define-public python-google-cloud-core classes) used by all of the @code{google-cloud-*} packages.") (license license:asl2.0))) +(define-public python-google-cloud-storage + (package + (name "python-google-cloud-storage") + (version "2.3.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "google-cloud-storage" version)) + (sha256 + (base32 "0nwg9ic29s70kpvi71gmjv1y4w5a3vc9gj6d16f8w8hpbvgb1jzl")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (for-each delete-file-recursively + (list + ;; The system tests fail to find test_utils.retry. + "tests/system/" + ;; Needs docker. + "tests/conformance/")) + (invoke "pytest"))))))) + (native-inputs + (list python-pytest python-test-utils)) + (propagated-inputs + (list python-google-api-core + python-google-auth + python-google-cloud-core + python-google-resumable-media + python-protobuf + python-requests)) + (home-page "https://github.com/googleapis/python-storage") + (synopsis "Google Cloud Storage API client library") + (description "Google Cloud Storage allows you to store data on Google +infrastructure, and it can be used to distribute large data objects to users +via direct download. This package provides a Google Cloud Storage API client +library for Python.") + (license license:asl2.0))) + (define-public python-w3lib (package (name "python-w3lib") -- cgit v1.2.3 From 192c7229284b9499257b6b4ac46a17b93ffd0c52 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 20 May 2022 13:50:26 +0200 Subject: gnu: Add python-smart-open. * gnu/packages/python-web.scm (python-smart-open): New variable. --- gnu/packages/python-web.scm | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index f3cd3e521b..b4a2bc365b 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6961,6 +6961,49 @@ (define-public python-google-cloud-storage library for Python.") (license license:asl2.0))) +(define-public python-smart-open + (package + (name "python-smart-open") + (version "6.0.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "smart_open" version)) + (sha256 + (base32 "1c12ilanx9hgpcc5chjkaqnx1hx14iazyindy7syvjhbdywhc0fn")))) + (build-system python-build-system) + (arguments + `(#:tests? #false ;none included + #:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest"))))))) + (propagated-inputs + (list python-azure-common + python-azure-core + python-azure-storage-blob + python-boto3 + python-google-cloud-storage + python-requests)) + (native-inputs + (list python-flask + python-flask-cors + python-graphql-core + python-moto + python-paramiko + python-pathlib2 + python-pytest + python-pytest-rerunfailures + python-responses)) + (home-page "https://github.com/piskvorky/smart_open") + (synopsis "Utilities for streaming large files") + (description + "This package provides utilities for streaming large files (S3, HDFS, +GCS, Azure Blob Storage, gzip, bz2, etc.)") + (license license:expat))) + (define-public python-w3lib (package (name "python-w3lib") -- cgit v1.2.3 From 46ef39b4be81076f11f37507667eb42786c4727f Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 29 Apr 2022 17:02:27 -0400 Subject: gnu: Remove python2-html5lib. * gnu/packages/python-web.scm (python2-html5lib): Delete variable. (python-html5lib-0.9, python2-html5lib-0.9): Likewise. --- gnu/packages/python-web.scm | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index b4a2bc365b..7feac5955f 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -1326,25 +1326,6 @@ (define-public python-html5lib and written in Python.") (license license:expat))) -(define-public python2-html5lib - (package-with-python2 python-html5lib)) - -;; Needed for python-bleach, a dependency of python-notebook -(define-public python-html5lib-0.9 - (package - (inherit python-html5lib) - (version "0.999") - (source - (origin - (method url-fetch) - (uri (pypi-uri "html5lib" version)) - (sha256 - (base32 - "17n4zfsj6ynmbwdwviywmj8r6nzr3xvfx2zs0xhndmvm51z7z263")))))) - -(define-public python2-html5lib-0.9 - (package-with-python2 python-html5lib-0.9)) - (define-public python-html5-parser (package (name "python-html5-parser") -- cgit v1.2.3 From 77afe03cf9e90f597571b4181f620da0997e84af Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Mon, 2 May 2022 00:38:02 -0400 Subject: gnu: Add python-jstyleson. * gnu/packages/python-web.scm (python-jstyleson): New variable. --- gnu/packages/python-web.scm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 7feac5955f..cb52db3bbd 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -7368,3 +7368,22 @@ (define-public python-scrapy from their pages. It can be used for a wide range of purposes, from data mining to monitoring and automated testing.") (license license:bsd-3))) + +(define-public python-jstyleson + (package + (name "python-jstyleson") + (version "0.0.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "jstyleson" version)) + (sha256 + (base32 "13ihw6jqwkg3ai4xb83kw39pvh73b2wg6ld3wvj5jaasn7rh6038")))) + (build-system python-build-system) + (arguments (list #:tests? #f)) ;no tests in pypi release + (home-page "https://github.com/linjackson78/jstyleson") + (synopsis "JSON parser supporting js-style comments") + (description "@code{jstyleson} is a Python library to parse JSON. +Contrary to the standard Python @code{json} library, it understands js-style +comments. Trailing comma is also supported.") + (license license:expat))) -- cgit v1.2.3 From 32ffbb16e8cbb9c5416274320a56885c45a88ebf Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Mon, 2 May 2022 00:39:09 -0400 Subject: gnu: Add python-html-text. * gnu/packages/python-web.scm (python-html-text): New variable. --- gnu/packages/python-web.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index cb52db3bbd..00fe560a36 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -7387,3 +7387,25 @@ (define-public python-jstyleson Contrary to the standard Python @code{json} library, it understands js-style comments. Trailing comma is also supported.") (license license:expat))) + +(define-public python-html-text + (package + (name "python-html-text") + (version "0.5.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "html_text" version)) + (sha256 + (base32 "1v9x171l3bmyayc1144nrkn9410lp4lhlrrjii54j7b5f2xipmmg")))) + (build-system python-build-system) + (native-inputs (list python-pytest)) + (propagated-inputs (list python-lxml)) + (home-page "https://github.com/TeamHG-Memex/html-text") + (synopsis "Extract text from HTML") + (description "HTML to Text is a Python library for extract text from HTML. +Contrary to other solution such as LXML or Beautiful Soup, the text extracted +with @code{html_text} does not contain elements such as JavaScript or inline +styles not normally visible to users. It also normalizes white space +characters in a smarter, more visually pleasing style.") + (license license:expat))) -- cgit v1.2.3 From c5dd41afc6659b96c86efea512ee7ecc0bbf6604 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Mon, 2 May 2022 00:47:24 -0400 Subject: gnu: Add python-mf2py. * gnu/packages/python-web.scm (python-mf2py): New variable. --- gnu/packages/python-web.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 00fe560a36..59828d7473 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -7409,3 +7409,35 @@ (define-public python-html-text styles not normally visible to users. It also normalizes white space characters in a smarter, more visually pleasing style.") (license license:expat))) + +(define-public python-mf2py + (package + (name "python-mf2py") + (version "1.1.2") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/microformats/mf2py") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "00pzfc5sl6ywlcr6f2k37n3f2bb7w488p2k95ixzjwx6w3yh747n")))) + (build-system python-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-vv" "test"))))))) + (native-inputs (list python-pytest)) + (propagated-inputs + (list python-beautifulsoup4 python-html5lib python-requests)) + (home-page "https://github.com/microformats/mf2py") + (synopsis "Python Microformats2 parser") + (description "This Python library provides a Microformats2 parser +implementing the full Microformats2 (mf2) specification, including backward +compatibility with Microformats1 (mf1).") + (license license:expat))) -- cgit v1.2.3 From 4820a23521727091d0085e5b381aa5c44ebd2ecb Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Tue, 3 May 2022 16:05:36 -0400 Subject: gnu: Add python-extruct. * gnu/packages/python-web.scm (python-extruct): New variable. --- gnu/packages/python-web.scm | 47 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 59828d7473..427994e22b 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -97,6 +97,7 @@ (define-module (gnu packages python-web) #:use-module (gnu packages python-science) #:use-module (gnu packages python-xyz) #:use-module (gnu packages qt) + #:use-module (gnu packages rdf) #:use-module (gnu packages rpc) #:use-module (gnu packages serialization) #:use-module (gnu packages sphinx) @@ -7441,3 +7442,49 @@ (define-public python-mf2py implementing the full Microformats2 (mf2) specification, including backward compatibility with Microformats1 (mf1).") (license license:expat))) + +(define-public python-extruct + (package + (name "python-extruct") + (version "0.13.0") + (source (origin + (method git-fetch) ;for tests + (uri (git-reference + (url "https://github.com/scrapinghub/extruct") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "075zldf3dqcc429z1vk2ngbmv034bnlyk6arh3rh30jbsvz9pzl5")))) + (build-system python-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-vv" "tests"))))))) + (native-inputs (list python-pytest)) + (propagated-inputs + (list python-html-text + python-jstyleson + python-lxml + python-mf2py + python-pyrdfa3 + python-rdflib + python-rdflib-jsonld + python-w3lib)) + (home-page "https://github.com/scrapinghub/extruct") + (synopsis "Extract embedded metadata from HTML markup") + (description "@code{extruct} is a Python library for extracting embedded +metadata from HTML markup. Currently, extruct supports: +@itemize +@item W3C's HTML Microdata +@item embedded JSON-LD +@item Microformat via mf2py +@item Facebook's Open Graph +@item (experimental) RDFa via rdflib +@item Dublin Core Metadata (DC-HTML-2003) +@end itemize") + (license license:bsd-3))) -- cgit v1.2.3 From c59edcc5ed822c8966443acf3eb9f63b1614dc27 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 29 Apr 2022 17:38:29 -0400 Subject: gnu: Remove python2-oauth2client. * gnu/packages/python-web.scm (python2-oauth2client): Delete variable. --- gnu/packages/python-web.scm | 3 --- 1 file changed, 3 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 427994e22b..46d4ab105f 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -3880,9 +3880,6 @@ (define-public python-oauth2client library for Python") (license license:asl2.0))) -(define-public python2-oauth2client - (package-with-python2 python-oauth2client)) - (define-public python-flask-oidc (package (name "python-flask-oidc") -- cgit v1.2.3 From 7a9514eb059f9d7ef666e25be1825782a9eaf1a6 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 29 Apr 2022 17:38:49 -0400 Subject: gnu: Remove python2-zope-configuration. * gnu/packages/python-web.scm (python2-zope-configuration): Delete variable. --- gnu/packages/python-web.scm | 3 --- 1 file changed, 3 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 46d4ab105f..ce2dfffa69 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -2385,9 +2385,6 @@ (define-public python-zope-configuration (define-public python-zope-configuration-bootstrap (python-zope-bootstrap-package python-zope-configuration)) -(define-public python2-zope-configuration - (package-with-python2 python-zope-configuration)) - (define-public python-zope-copy (package (name "python-zope-copy") -- cgit v1.2.3 From e6ef574f2aed80b24fdaeda315f3a6d4b1903bb8 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 29 Apr 2022 17:38:52 -0400 Subject: gnu: Remove python2-sockjs-tornado. * gnu/packages/python-web.scm (python2-sockjs-tornado): Delete variable. --- gnu/packages/python-web.scm | 3 --- 1 file changed, 3 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index ce2dfffa69..3e2fe276c1 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -1160,9 +1160,6 @@ (define-public python-sockjs-tornado between a web browser and web server.") (license license:expat))) -(define-public python2-sockjs-tornado - (package-with-python2 python-sockjs-tornado)) - (define-public python-flask-assets (package (name "python-flask-assets") -- cgit v1.2.3 From b63429583b6ad1460cbc249fd4a61aa3cb24ef95 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 29 Apr 2022 17:38:58 -0400 Subject: gnu: Remove python2-zope-security. * gnu/packages/python-web.scm (python2-zope-security): Delete variable. --- gnu/packages/python-web.scm | 3 --- 1 file changed, 3 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 3e2fe276c1..643cba6c77 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -2539,9 +2539,6 @@ (define-public python-zope-security-bootstrap ("python-zope-proxy" ,python-zope-proxy-bootstrap) ("python-zope-schema" ,python-zope-schema))))) -(define-public python2-zope-security - (package-with-python2 python-zope-security)) - (define-public python-zope-component (package (name "python-zope-component") -- cgit v1.2.3 From 6944240e51c22d201d285a4ccb142b535239bd38 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 29 Apr 2022 17:39:01 -0400 Subject: gnu: Remove python2-oauthlib. * gnu/packages/python-web.scm (python2-oauthlib): Delete variable. --- gnu/packages/python-web.scm | 3 --- 1 file changed, 3 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 643cba6c77..f47ff351ff 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -2966,9 +2966,6 @@ (define-public python-oauthlib OAuth request-signing logic.") (license license:bsd-3))) -(define-public python2-oauthlib - (package-with-python2 python-oauthlib)) - (define-public python-rauth (package (name "python-rauth") -- cgit v1.2.3 From 3ccf7ea236e0650f8b905df9f832bdde4b185ba9 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 29 Apr 2022 17:39:13 -0400 Subject: gnu: Remove python2-rauth. * gnu/packages/python-web.scm (python2-rauth): Delete variable. --- gnu/packages/python-web.scm | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index f47ff351ff..3ae2e21f2c 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -2988,14 +2988,7 @@ (define-public python-rauth "Rauth is a Python library for OAuth 1.0/a, 2.0, and Ofly. It also provides service wrappers for convenient connection initialization and authenticated session objects providing things like keep-alive.") - (license license:expat) - (properties `((python2-variant . ,(delay python2-rauth)))))) - -(define-public python2-rauth - (let ((base (package-with-python2 (strip-python2-variant python-rauth)))) - (package/inherit base - (native-inputs `(("python2-unittest2" ,python2-unittest2) - ,@(package-native-inputs base)))))) + (license license:expat))) (define-public python-unalix (package -- cgit v1.2.3 From 35caf03b1ea7385bad1b72ce20ee7df07a5f2227 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 29 Apr 2022 17:39:18 -0400 Subject: gnu: Remove python2-betamax. * gnu/packages/python-web.scm (python2-betamax): Delete variable. --- gnu/packages/python-web.scm | 3 --- 1 file changed, 3 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 3ae2e21f2c..cc0061b0bf 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -3518,9 +3518,6 @@ (define-public python-betamax replay them during future tests. It is designed to work with python-requests.") (license license:expat))) -(define-public python2-betamax - (package-with-python2 python-betamax)) - (define-public python-betamax-matchers (package (name "python-betamax-matchers") -- cgit v1.2.3 From 1e44359cc08dafce41c688effdf581e026d6aa4c Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 29 Apr 2022 17:39:30 -0400 Subject: gnu: Remove python2-pastedeploy. * gnu/packages/python-web.scm (python2-pastedeploy): Delete variable. --- gnu/packages/python-web.scm | 3 --- 1 file changed, 3 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index cc0061b0bf..38a0debca7 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -3152,9 +3152,6 @@ (define-public python-pastedeploy file.") (license license:expat))) -(define-public python2-pastedeploy - (package-with-python2 python-pastedeploy)) - (define-public python-webtest (package (name "python-webtest") -- cgit v1.2.3 From 4ed5bc1ca0269ca4e192007294eb6ea2e1207399 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 29 Apr 2022 17:39:39 -0400 Subject: gnu: Remove python2-genshi. * gnu/packages/python-web.scm (python2-genshi): Delete variable. --- gnu/packages/python-web.scm | 3 --- 1 file changed, 3 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 38a0debca7..5969212b66 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -4026,9 +4026,6 @@ (define-public python-genshi textual content for output generation on the web.") (license license:bsd-3))) -(define-public python2-genshi - (package-with-python2 python-genshi)) - (define-public python-flask-principal (package (name "python-flask-principal") -- cgit v1.2.3 From 25a15e71e65b97f4b7ab9154411f42102beaab70 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 29 Apr 2022 17:39:52 -0400 Subject: gnu: Remove python2-webob. * gnu/packages/python-web.scm (python2-webob): Delete variable. --- gnu/packages/python-web.scm | 3 --- 1 file changed, 3 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 5969212b66..6b7585d10e 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -2126,9 +2126,6 @@ (define-public python-webob object to help create WSGI responses.") (license license:expat))) -(define-public python2-webob - (package-with-python2 python-webob)) - (define-public python-zope-event (package (name "python-zope-event") -- cgit v1.2.3 From 9f97098f24a9d49ad51faa9eac1af0bb296e1bc1 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 29 Apr 2022 21:21:01 -0400 Subject: gnu: Remove python2-httplib2. * gnu/packages/python-web.scm (python2-httplib2): Delete variable. --- gnu/packages/python-web.scm | 3 --- 1 file changed, 3 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 6b7585d10e..f1655bbf85 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -811,9 +811,6 @@ (define-public python-httplib2 other HTTP libraries.") (license license:expat))) -(define-public python2-httplib2 - (package-with-python2 python-httplib2)) - (define-public httpie (package (name "httpie") -- cgit v1.2.3 From 1db8ff4b52edae3584ea108e8984ce135f2329db Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 29 Apr 2022 21:21:10 -0400 Subject: gnu: Remove python2-zope-component. * gnu/packages/python-web.scm (python2-zope-component): Delete variable. --- gnu/packages/python-web.scm | 3 --- 1 file changed, 3 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index f1655bbf85..79b7ab429e 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -2575,9 +2575,6 @@ (define-public python-zope-component (define-public python-zope-component-bootstrap (python-zope-bootstrap-package python-zope-component)) -(define-public python2-zope-component - (package-with-python2 python-zope-component)) - (define-public python-zope-deferredimport (package (name "python-zope-deferredimport") -- cgit v1.2.3 From 87c15103e6fc20137162ffa7d0306b150ff874b5 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 29 Apr 2022 21:21:15 -0400 Subject: gnu: Remove python2-zope-location. * gnu/packages/python-web.scm (python2-zope-location): Delete variable. --- gnu/packages/python-web.scm | 3 --- 1 file changed, 3 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 79b7ab429e..5374390cb1 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -2489,9 +2489,6 @@ (define-public python-zope-location (define-public python-zope-location-bootstrap (python-zope-bootstrap-package python-zope-location)) -(define-public python2-zope-location - (package-with-python2 python-zope-location)) - (define-public python-zope-security (package (name "python-zope-security") -- cgit v1.2.3 From b6cd6bee626fe87718817b657ddbc2b3afbb0204 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 29 Apr 2022 22:20:35 -0400 Subject: gnu: Remove python2-zope-proxy. * gnu/packages/python-web.scm (python2-zope-proxy): Delete variable. --- gnu/packages/python-web.scm | 3 --- 1 file changed, 3 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 5374390cb1..52bb55ac3e 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -2435,9 +2435,6 @@ (define-public python-zope-proxy (define-public python-zope-proxy-bootstrap (python-zope-bootstrap-package python-zope-proxy)) -(define-public python2-zope-proxy - (package-with-python2 python-zope-proxy)) - (define-public python-zope-hookable (package (name "python-zope-hookable") -- cgit v1.2.3 From c4a9b0b03b0cb4e5637bb2688dfbb2cdc344354f Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 29 Apr 2022 22:28:05 -0400 Subject: gnu: Remove python2-zope-schema. * gnu/packages/python-web.scm (python2-zope-schema): Delete variable. --- gnu/packages/python-web.scm | 3 --- 1 file changed, 3 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 52bb55ac3e..f0729ce4cc 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -2348,9 +2348,6 @@ (define-public python-zope-schema defining data schemas.") (license license:zpl2.1))) -(define-public python2-zope-schema - (package-with-python2 python-zope-schema)) - (define-public python-zope-configuration (package (name "python-zope-configuration") -- cgit v1.2.3 From 176f6ae5a1fabfca78812acb83320ebc47617ebf Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 29 Apr 2022 22:38:54 -0400 Subject: gnu: Remove python2-zope-i18nmessageid. * gnu/packages/python-web.scm (python2-zope-i18nmessageid): Delete variable. --- gnu/packages/python-web.scm | 3 --- 1 file changed, 3 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index f0729ce4cc..905c4d8fc9 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -2313,9 +2313,6 @@ (define-public python-zope-i18nmessageid internationalized messages within program source text.") (license license:zpl2.1))) -(define-public python2-zope-i18nmessageid - (package-with-python2 python-zope-i18nmessageid)) - (define-public python-zope-schema (package (name "python-zope-schema") -- cgit v1.2.3 From f5c3588726f664adbf849df4b09cdc8fbffecc2f Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 29 Apr 2022 22:48:24 -0400 Subject: gnu: Remove python2-zope-testrunner. * gnu/packages/python-web.scm (python2-zope-testrunner): Delete variable. --- gnu/packages/python-web.scm | 3 --- 1 file changed, 3 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 905c4d8fc9..4eccfcb29f 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -2288,9 +2288,6 @@ (define-public python-zope-testrunner-bootstrap ("python-zope-exceptions" ,python-zope-exceptions-bootstrap))) (properties `((hidden? . #t))))) -(define-public python2-zope-testrunner - (package-with-python2 python-zope-testrunner)) - (define-public python-zope-i18nmessageid (package (name "python-zope-i18nmessageid") -- cgit v1.2.3 From 3db04d3051fc4e9c139dd1585e71e218819dd2f6 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 29 Apr 2022 22:54:14 -0400 Subject: gnu: Remove python2-zope-exceptions. * gnu/packages/python-web.scm (python2-zope-exceptions): Delete variable. --- gnu/packages/python-web.scm | 3 --- 1 file changed, 3 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 4eccfcb29f..18722b842a 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -2224,9 +2224,6 @@ (define (python-zope-bootstrap-package orig) (define-public python-zope-exceptions-bootstrap (python-zope-bootstrap-package python-zope-exceptions)) -(define-public python2-zope-exceptions - (package-with-python2 python-zope-exceptions)) - (define-public python-zope-testing (package (name "python-zope-testing") -- cgit v1.2.3 From eccb33c210e364b2c29c08a148e19f1801310888 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 29 Apr 2022 22:59:09 -0400 Subject: gnu: Remove python2-tornado. * gnu/packages/python-web.scm (python2-tornado): Delete variable. (python-tornado)[properties]: Delete field. --- gnu/packages/python-web.scm | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 18722b842a..cc444cf488 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -1985,8 +1985,7 @@ (define-public python-tornado Tornado can scale to tens of thousands of open connections, making it ideal for long polling, WebSockets, and other applications that require a long-lived connection to each user.") - (license license:asl2.0) - (properties `((python2-variant . ,(delay python2-tornado)))))) + (license license:asl2.0))) (define-public python-tornado-6 (package @@ -2019,16 +2018,6 @@ (define-public python-tornado-6 connection to each user.") (license license:asl2.0))) -(define-public python2-tornado - (let ((tornado (package-with-python2 (strip-python2-variant python-tornado)))) - (package/inherit tornado - (propagated-inputs - `(("python2-backport-ssl-match-hostname" - ,python2-backport-ssl-match-hostname) - ("python2-backports-abc" ,python2-backports-abc) - ("python2-singledispatch" ,python2-singledispatch) - ,@(package-propagated-inputs tornado)))))) - (define-public python-tornado-http-auth (package (name "python-tornado-http-auth") -- cgit v1.2.3 From 7287f835234f3087ce7f467517a1e55679683050 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 29 Apr 2022 22:59:34 -0400 Subject: gnu: Remove python2-zope-interface. * gnu/packages/python-web.scm (python2-zope-interface): Delete variable. --- gnu/packages/python-web.scm | 3 --- 1 file changed, 3 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index cc444cf488..e24b691abd 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -2159,9 +2159,6 @@ (define-public python-zope-interface conforming to a given API or contract.") (license license:zpl2.1))) -(define-public python2-zope-interface - (package-with-python2 python-zope-interface)) - (define-public python-zope-exceptions (package (name "python-zope-exceptions") -- cgit v1.2.3 From 6de507f5c931886f475d98b63fe6e786e403461f Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 29 Apr 2022 23:08:05 -0400 Subject: gnu: Remove python2-zope-testing. * gnu/packages/python-web.scm (python2-zope-testing): Delete variable. --- gnu/packages/python-web.scm | 3 --- 1 file changed, 3 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index e24b691abd..3edeef68a4 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -2228,9 +2228,6 @@ (define-public python-zope-testing forms, HTTP servers, regular expressions, and more.") (license license:zpl2.1))) -(define-public python2-zope-testing - (package-with-python2 python-zope-testing)) - (define-public python-zope-testrunner (package (name "python-zope-testrunner") -- cgit v1.2.3 From a03c2d9c7b6a1fa0c81c020f7140c16be1509db7 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 29 Apr 2022 23:08:09 -0400 Subject: gnu: Remove python2-zope-event. * gnu/packages/python-web.scm (python2-zope-event): Delete variable. --- gnu/packages/python-web.scm | 3 --- 1 file changed, 3 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 3edeef68a4..4151d77d2d 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -2132,9 +2132,6 @@ (define-public python-zope-event dispatching systems can be built.") (license license:zpl2.1))) -(define-public python2-zope-event - (package-with-python2 python-zope-event)) - (define-public python-zope-interface (package (name "python-zope-interface") -- cgit v1.2.3 From 4d7ae91d3e92723b123b2a56d9638cd556fedade Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 29 Apr 2022 23:08:24 -0400 Subject: gnu: Remove python2-responses. * gnu/packages/python-web.scm (python2-responses): Delete variable. --- gnu/packages/python-web.scm | 3 --- 1 file changed, 3 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 4151d77d2d..a50f071deb 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -3260,9 +3260,6 @@ (define-public python-responses library.") (license license:asl2.0))) -(define-public python2-responses - (package-with-python2 python-responses)) - (define-public python-grequests (package (name "python-grequests") -- cgit v1.2.3 From 26f5764071e606658a8b244bb2cc1d1724cd5481 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 29 Apr 2022 23:45:39 -0400 Subject: gnu: Remove python2-cookies. * gnu/packages/python-web.scm (python2-cookies): Delete variable. --- gnu/packages/python-web.scm | 3 --- 1 file changed, 3 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index a50f071deb..2950a095eb 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -3232,9 +3232,6 @@ (define-public python-cookies (home-page "https://gitlab.com/sashahart/cookies") (license license:expat))) -(define-public python2-cookies - (package-with-python2 python-cookies)) - (define-public python-responses (package (name "python-responses") -- cgit v1.2.3 From c427de65313f5875c0fc2b5af41d16a346e70214 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 29 Apr 2022 23:45:48 -0400 Subject: gnu: Remove python2-pycurl. * gnu/packages/python-web.scm (python2-pycurl): Delete variable. --- gnu/packages/python-web.scm | 3 --- 1 file changed, 3 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 2950a095eb..f4302e0108 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -1414,9 +1414,6 @@ (define-public python-pycurl ;; under the terms of LGPLv2.1+ or Expat. (license (list license:lgpl2.1+ license:expat)))) -(define-public python2-pycurl - (package-with-python2 python-pycurl)) - (define-public python-webencodings (package (name "python-webencodings") -- cgit v1.2.3 From 7720afd99ae389cca36bca51abe7ba6b500fb190 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Sun, 1 May 2022 02:47:04 -0400 Subject: gnu: Remove python2-requests. * gnu/packages/python-web.scm (python2-requests): Delete variable. --- gnu/packages/python-web.scm | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index f4302e0108..398f2891dd 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -2723,17 +2723,7 @@ (define-public python-requests (description "Requests is a Python HTTP client library. It aims to be easier to use than Python’s urllib2 library.") - (license license:asl2.0) - (properties `((python2-variant . ,(delay python2-requests)))))) - -(define-public python2-requests - (let ((base (package-with-python2 (strip-python2-variant python-requests)))) - (package - (inherit base) - ;; The python-charset-normalizer dependency is necessary on Python 3 - ;; only. - (propagated-inputs (modify-inputs (package-propagated-inputs base) - (delete "python-charset-normalizer")))))) + (license license:asl2.0))) (define-public python-requests-unixsocket (package -- cgit v1.2.3 From 89ffe2297fd00e498b94466d3477c8833d116bb7 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Sun, 1 May 2022 02:47:09 -0400 Subject: gnu: Remove python2-bottle. * gnu/packages/python-web.scm (python2-bottle): Delete variable. --- gnu/packages/python-web.scm | 3 --- 1 file changed, 3 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 398f2891dd..24aebe765a 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -4147,9 +4147,6 @@ (define-public python-bottle (description "@code{python-bottle} is a WSGI framework for small web-applications.") (license license:expat))) -(define-public python2-bottle - (package-with-python2 python-bottle)) - (define-public python-wtforms (package (name "python-wtforms") -- cgit v1.2.3 From c0e3ba2904f5fbaa105d54f4a5a920e04caff629 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Sun, 1 May 2022 02:51:20 -0400 Subject: gnu: Remove python2-webencodings. * gnu/packages/python-web.scm (python2-webencodings): Delete variable. --- gnu/packages/python-web.scm | 3 --- 1 file changed, 3 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 24aebe765a..d5132670d5 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -1452,9 +1452,6 @@ (define-public python-webencodings is Python’s.") (license license:bsd-3))) -(define-public python2-webencodings - (package-with-python2 python-webencodings)) - (define-public python-openapi-schema-validator (package (name "python-openapi-schema-validator") -- cgit v1.2.3 From eb13c73ce271c8566a7a4fafdbc00d2997dd3740 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Sun, 1 May 2022 02:51:23 -0400 Subject: gnu: Remove python2-urllib3. * gnu/packages/python-web.scm (python2-urllib3): Delete variable. --- gnu/packages/python-web.scm | 9 --------- 1 file changed, 9 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index d5132670d5..b0454b6f81 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -2983,17 +2983,8 @@ (define-public python-urllib3 "Urllib3 supports features left out of urllib and urllib2 libraries. It can reuse the same socket connection for multiple requests, it can POST files, supports url redirection and retries, and also gzip and deflate decoding.") - (properties `((python2-variant . ,(delay python2-urllib3)))) (license license:expat))) -(define-public python2-urllib3 - (let ((base (package-with-python2 (strip-python2-variant python-urllib3)))) - (package/inherit - base - (propagated-inputs - `(("python-ipaddress" ,python2-ipaddress) - ,@(package-propagated-inputs base)))))) - (define-public awscli (package ;; Note: updating awscli typically requires updating botocore as well. -- cgit v1.2.3 From 9377be6a4816c92e13be34c8d3291895a96db757 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 6 May 2022 00:37:38 -0400 Subject: gnu: Add python-lazr-uri. * gnu/packages/python-web.scm (python-lazr-uri): New variable. --- gnu/packages/python-web.scm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index b0454b6f81..76d9642616 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -109,6 +109,24 @@ (define-module (gnu packages python-web) #:use-module ((guix licenses) #:prefix license:) #:use-module (srfi srfi-1)) +(define-public python-lazr-uri + (package + (name "python-lazr-uri") + (version "1.0.6") + (source + (origin + (method url-fetch) + (uri (pypi-uri "lazr.uri" version)) + (sha256 + (base32 "0r44rw0bj5mayhqwfwj1dnrjgzj1lrh7ishiddd1vygnrczqa9jh")))) + (build-system python-build-system) + (native-inputs (list python-zope-testrunner)) + (home-page "https://launchpad.net/lazr.uri") + (synopsis "Python URI manipulation library") + (description "This Python package provides a self-contained, easily +reusable library for parsing, manipulating, and generating URIs.") + (license license:lgpl3))) + (define-public python-prawcore (package (name "python-prawcore") -- cgit v1.2.3 From 5e25aeee162d88fd2a7c9254a3b3df1783e1b69b Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 6 May 2022 00:41:39 -0400 Subject: gnu: Add python-wadllib. * gnu/packages/python-web.scm (python-wadllib): New variable. --- gnu/packages/python-web.scm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 76d9642616..d6f068f607 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -7394,3 +7394,21 @@ (define-public python-extruct @item Dublin Core Metadata (DC-HTML-2003) @end itemize") (license license:bsd-3))) + +(define-public python-wadllib + (package + (name "python-wadllib") + (version "1.3.6") + (source + (origin + (method url-fetch) + (uri (pypi-uri "wadllib" version)) + (sha256 + (base32 "1z65crvdsjxh9nahz1g6q021ijmv85ixmq88l96d61qh5imavndc")))) + (build-system python-build-system) + (propagated-inputs (list python-lazr-uri)) + (home-page "https://launchpad.net/wadllib") + (synopsis "Web Application Description Language (WADL) navigation library") + (description "The @code{wadllib} Python library allows navigating HTTP +resources using Web Application Description Language (WADL) files as guides.") + (license license:lgpl3))) -- cgit v1.2.3 From f880fc7b88f25f9cca59dffabd9de6dd0ab24fc9 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Tue, 10 May 2022 01:05:48 -0400 Subject: gnu: Add python-lazr-restfulclient. * gnu/packages/python-web.scm (python-lazr-restfulclient): New variable. --- gnu/packages/python-web.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index d6f068f607..47ba88882f 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -109,6 +109,31 @@ (define-module (gnu packages python-web) #:use-module ((guix licenses) #:prefix license:) #:use-module (srfi srfi-1)) +(define-public python-lazr-restfulclient + (package + (name "python-lazr-restfulclient") + (version "0.14.4") + (source + (origin + (method url-fetch) + (uri (pypi-uri "lazr.restfulclient" version)) + (sha256 + (base32 "11yhlqmdf2cqbdfzn8gdmzvmcivh4fflr18zf412sflvfjrdc3xz")))) + (build-system python-build-system) + ;; Disable the test suite to avoid the lazr.authentication requirement, + ;; which requires the ancient 'oauth', a Python 2 only library. + (arguments (list #:tests? #f)) + (propagated-inputs + (list python-distro + python-httplib2 + python-oauthlib + python-wadllib)) + (home-page "https://launchpad.net/lazr.restfulclient") + (synopsis "Web client Python library extending wadlib") + (description "This package provides a programmable client library that +adds functionality on top of @code{wadlib}.") + (license license:lgpl3+))) + (define-public python-lazr-uri (package (name "python-lazr-uri") -- cgit v1.2.3 From dad15bdb26edbdf7b80519a2e7d0edf4e1efcd5f Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Tue, 10 May 2022 01:05:59 -0400 Subject: gnu: Add python-launchpadlib. * gnu/packages/python-web.scm (python-launchpadlib): New variable. --- gnu/packages/python-web.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 47ba88882f..bfbae3ce07 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -134,6 +134,35 @@ (define-public python-lazr-restfulclient adds functionality on top of @code{wadlib}.") (license license:lgpl3+))) +(define-public python-launchpadlib + (package + (name "python-launchpadlib") + (version "1.10.16") + (source + (origin + (method url-fetch) + (uri (pypi-uri "launchpadlib" version)) + (sha256 + (base32 "106aixwchwyb100wlf4cnj1vgsi2d7x40ps8xv8az27r6qwv3x0d")))) + (build-system python-build-system) + (arguments + (list #:phases #~(modify-phases %standard-phases + (add-before 'check 'set-home + (lambda _ + ;; Tests require a writable home. + (setenv "HOME" "/tmp")))))) + (propagated-inputs + (list python-httplib2 + python-keyring + python-lazr-restfulclient + python-lazr-uri)) + (native-inputs (list python-mock python-testresources python-wadllib)) + (home-page "https://help.launchpad.net/API/launchpadlib") + (synopsis "Python client library for Launchpad's web service") + (description "@code{launchpadlib} is a Python library that allows +scripting Launchpad via its the web service API.") + (license license:lgpl3+))) + (define-public python-lazr-uri (package (name "python-lazr-uri") -- cgit v1.2.3 From 53a0e405ff37ac24dd9baf6114ca71cae4268fee Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Mon, 6 Jun 2022 16:06:30 -0400 Subject: gnu: python-flask-combo-jsonapi: Skip failing test. * gnu/packages/python-web.scm (python-flask-combo-jsonapi) [phases]{check}: Skip test_get_list_with_simple_filter_relationship_custom_qs_api test. [native-inputs]: Normalize indentation. --- gnu/packages/python-web.scm | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index bfbae3ce07..80ed6a27b1 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -7067,17 +7067,22 @@ (define-public python-flask-combo-jsonapi (base32 "07fhcjiyif80z1vyh35za29sqx1mmqh568jrbrrs675j4a797sj1")))) (build-system python-build-system) (arguments - '(#:phases (modify-phases %standard-phases - (add-after 'unpack 'loosen-requirements - (lambda _ - ;; Don't pin specific versions of dependencies. - (substitute* "requirements.txt" - (("^sqlalchemy[=<>].*") "sqlalchemy\n") - (("^marshmallow[=<>].*") "marshmallow\n") - (("^Flask[=<>].*") "Flask\n")))) - (replace 'check - (lambda _ - (invoke "pytest" "-vv")))))) + '(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'loosen-requirements + (lambda _ + ;; Don't pin specific versions of dependencies. + (substitute* "requirements.txt" + (("^sqlalchemy[=<>].*") "sqlalchemy\n") + (("^marshmallow[=<>].*") "marshmallow\n") + (("^Flask[=<>].*") "Flask\n")))) + (replace 'check + (lambda _ + (invoke "pytest" "-vv" "-k" + ;; The following test fails for unknown reasons (see: + ;; https://github.com/AdCombo/flask-combo-jsonapi/issues/66). + "not test_get_list_with_simple_filter_\ +relationship_custom_qs_api")))))) (propagated-inputs (list python-flask python-marshmallow @@ -7088,7 +7093,9 @@ (define-public python-flask-combo-jsonapi python-simplejson python-six)) (native-inputs - (list python-coverage python-coveralls python-pytest + (list python-coverage + python-coveralls + python-pytest python-pytest-runner)) (home-page "https://github.com/AdCombo/flask-combo-jsonapi") (synopsis "Flask extension to quickly create JSON:API 1.0 REST Web APIs") -- cgit v1.2.3 From 8df6117b781d426a565dde64208b9a20987a4762 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Mon, 6 Jun 2022 16:11:50 -0400 Subject: gnu: python-flask-restx: Skip networking dependent test. * gnu/packages/python-web.scm (python-flask-restx) [phases]{check}: Skip the 'test_redirect' test. --- gnu/packages/python-web.scm | 6 ++++-- 1 file changed, 4 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 80ed6a27b1..06a0d2593b 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -5869,8 +5869,10 @@ (define-public python-flask-restx (lambda _ (invoke "pytest" "--benchmark-skip" "-k" ;; Those tests need internet access - "not test_check and not test_valid_value_check \ -and not test_override_app_level")))))) + (string-join + '("not test_check and not test_valid_value_check \ +and not test_override_app_level" + "not test_redirect") " and "))))))) (home-page "https://github.com/python-restx/flask-restx") (synopsis "Framework for fast, easy and documented API development with Flask") -- cgit v1.2.3