me
/
guix
Archived
1
0
Fork 0

gnu: python-aws-xray-sdk: Update to 2.12.0.

* gnu/packages/python-web.scm (python-aws-xray-sdk): Update to 2.12.0.
[build-system]: Use pyproject-build-system.
[arguments]: Specify #:test-flags; do not override 'check phase; add
'pre-check phase.
[native-inputs]: Add python-httpx, python-mock, python-pytest-asyncio, and
python-pytest-benchmark.
master
Ricardo Wurmus 2023-04-27 06:41:50 +02:00
parent e5619147d4
commit cec543e70f
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 34 additions and 40 deletions

View File

@ -708,7 +708,7 @@ Model} (SAM) templates into AWS CloudFormation templates.")
(define-public python-aws-xray-sdk (define-public python-aws-xray-sdk
(package (package
(name "python-aws-xray-sdk") (name "python-aws-xray-sdk")
(version "2.9.0") (version "2.12.0")
(home-page "https://github.com/aws/aws-xray-sdk-python") (home-page "https://github.com/aws/aws-xray-sdk-python")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
@ -716,54 +716,48 @@ Model} (SAM) templates into AWS CloudFormation templates.")
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"04fyik5axbilj2g9fzhhw8ch8xfn7iai3j6myk7z4g26m1mrhxsi")))) "0082q89dq5ww0a7q7rnyhywqvy4i8h3c0mnj7ilv3b0indhkasl8"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
`(#:phases (modify-phases %standard-phases (list
(add-after 'unpack 'disable-tests #:test-flags
(lambda _ '(list ;; Tries to connect to external network resources
(for-each delete-file "--ignore=tests/ext/httpx"
'(;; These tests require packages not yet in Guix. ;; TODO: How to configure Django for these tests?
"tests/ext/aiobotocore/test_aiobotocore.py" "--ignore=tests/ext/django"
"tests/ext/aiohttp/test_middleware.py" ;; These tests require packages not yet in Guix.
"tests/ext/pg8000/test_pg8000.py" "--ignore=tests/ext/aiobotocore/test_aiobotocore.py"
"tests/ext/psycopg2/test_psycopg2.py" "--ignore=tests/ext/aiohttp/test_middleware.py"
"tests/ext/pymysql/test_pymysql.py" "--ignore=tests/ext/pg8000/test_pg8000.py"
"tests/ext/pynamodb/test_pynamodb.py" "--ignore=tests/ext/psycopg2/test_psycopg2.py"
"tests/ext/sqlalchemy_core/test_postgres.py" "--ignore=tests/ext/pymysql/test_pymysql.py"
"tests/test_async_recorder.py" "--ignore=tests/ext/pynamodb/test_pynamodb.py"
"--ignore=tests/ext/sqlalchemy_core/test_postgres.py"
"--ignore=tests/test_async_recorder.py"
;; FIXME: Why is this failing? ;; FIXME: Why is this failing?
"tests/test_patcher.py" "--ignore=tests/test_patcher.py"
;; 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. ;; These tests want to access httpbin.org.
"tests/ext/requests/test_requests.py" "--ignore=tests/ext/requests/test_requests.py"
"tests/ext/httplib/test_httplib.py" "--ignore=tests/ext/httplib/test_httplib.py"
"tests/ext/aiohttp/test_client.py")))) "--ignore=tests/ext/aiohttp/test_client.py")
(replace 'check #:phases
'(modify-phases %standard-phases
(add-before 'check 'pre-check
(lambda _ (lambda _
;; Allow "import tests.utils" to work as expected. ;; Allow "import tests.utils" to work as expected.
(setenv "PYTHONPATH" (getcwd)) (setenv "PYTHONPATH" (getcwd)))))))
(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 (native-inputs
(list ;; These are required for the test suite. (list ;; These are required for the test suite.
python-bottle python-bottle
python-flask python-flask
python-flask-sqlalchemy python-flask-sqlalchemy
python-httpx
python-mock
python-pymysql python-pymysql
python-pytest python-pytest
python-pytest-aiohttp python-pytest-aiohttp
python-pytest-asyncio
python-pytest-benchmark
python-requests python-requests
python-sqlalchemy python-sqlalchemy
python-webtest)) python-webtest))