From 2d4f7ba84e297f634eeb058c53e4333646768b6d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 18 Jul 2025 14:28:26 +0100 Subject: [PATCH] gnu: python-aws-xray-sdk: Fix build. * gnu/packages/python-web.scm (python-aws-xray-sdk): [arguments] : Rework skipped tests. [native-inputs]: Remove python-pytest-aiohttp, python-requests, python-wheel, and python-pytest-asyncio; add python-aiohttp, python-pytest-asyncio-0.26. [propagated-inputs]: Remove python-aiohttp, python-future, and python-urllib3; add python-requests. Change-Id: Ib0a7166cc507d6ebac424780b2760e17c7dca954 --- gnu/packages/python-web.scm | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index bd09867bb8f87d34690d5570d1af2901ef12dc2f..8c23726a5f1ca9a8855368d00439d7c75c247fa8 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -1964,7 +1964,10 @@ Model} (SAM) templates into AWS CloudFormation templates.") (list #:test-flags '(list ;; Tries to connect to external network resources + "--ignore=tests/ext/aiohttp/test_client.py" + "--ignore=tests/ext/httplib/test_httplib.py" "--ignore=tests/ext/httpx" + "--ignore=tests/ext/requests/test_requests.py" ;; TODO: How to configure Django for these tests? "--ignore=tests/ext/django" ;; These tests require packages not yet in Guix. @@ -1982,11 +1985,7 @@ Model} (SAM) templates into AWS CloudFormation templates.") "--ignore=tests/ext/flask_sqlalchemy/test_query.py" ;; FIXME: Why is this failing? "--ignore=tests/test_patcher.py" - "--ignore=tests/test_lambda_context.py" - ;; These tests want to access httpbin.org. - "--ignore=tests/ext/requests/test_requests.py" - "--ignore=tests/ext/httplib/test_httplib.py" - "--ignore=tests/ext/aiohttp/test_client.py") + "--ignore=tests/test_lambda_context.py") #:phases '(modify-phases %standard-phases (add-before 'check 'pre-check @@ -1995,6 +1994,7 @@ Model} (SAM) templates into AWS CloudFormation templates.") (setenv "PYTHONPATH" (getcwd))))))) (native-inputs (list ;; These are required for the test suite. + python-aiohttp python-bottle python-flask python-flask-sqlalchemy @@ -2002,20 +2002,15 @@ Model} (SAM) templates into AWS CloudFormation templates.") python-mock python-pymysql python-pytest - python-pytest-aiohttp - python-pytest-asyncio + python-pytest-asyncio-0.26 python-pytest-benchmark - python-requests - python-sqlalchemy - python-webtest python-setuptools - python-wheel)) + python-sqlalchemy + python-webtest)) (propagated-inputs - (list python-aiohttp - python-botocore - python-future + (list python-botocore python-jsonpickle - python-urllib3 + python-requests python-wrapt)) (synopsis "Profile applications on AWS X-Ray") (description