gnu: python-sentry-sdk: Update to 1.5.5.

* gnu/packages/python-xyz.scm (python-sentry-sdk): Update to 1.5.5.
[build-system]: Use pyproject-build-system.
[arguments]: Use #:test-flags; simplify custom 'check phase.
[native-inputs]: Add nss-certs-for-test, python-setuptools, and python-wheel.

Change-Id: I1b4097a582c14a6b39e69d35795b7e53d832463d
This commit is contained in:
Ricardo Wurmus 2025-01-14 12:53:58 +01:00
parent eee88d70aa
commit 6e2cacf2f9
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -15369,7 +15369,7 @@ you do not want to store entirely on disk or on memory.")
(define-public python-sentry-sdk (define-public python-sentry-sdk
(package (package
(name "python-sentry-sdk") (name "python-sentry-sdk")
(version "1.5.1") (version "1.5.5")
(source (source
(origin (origin
(method git-fetch) ; no tests in PyPI release (method git-fetch) ; no tests in PyPI release
@ -15378,81 +15378,50 @@ you do not want to store entirely on disk or on memory.")
(commit version))) (commit version)))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "128bm136l5zprr3sqqb8j3d6k5i1fhz853mzvh3w8g0w1dw763mx")))) (base32 "0dygfaapvznpj2j7cfjb0vlwhsn5qa5kf0kq488xbhjg06n8rrc4"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
`(#:phases (list
(modify-phases %standard-phases #:test-flags
(add-before 'check 'fix-test ;; See <https://github.com/pytest-dev/pytest-forked/issues/88>.
;; See https://github.com/getsentry/sentry-python/pull/2712 ;; AttributeError: module 'py' has no attribute 'process'
(lambda _ '(list "--ignore=tests/integrations/django/test_basic.py"
(substitute* "tests/__init__.py" "--ignore=tests/utils/test_contextvars.py"
(("import pytest") ;; These try to use pip to install packages.
"import warnings") "--ignore=tests/integrations/gcp/test_gcp.py"
(("pytest.warns\\(None\\)") "-k"
"warnings.catch_warnings(record=True)")))) (string-append
(replace 'check ;; This test requires extra dependencies.
(lambda* (#:key inputs outputs tests? #:allow-other-keys) "not test_auto_enabling_integrations"
(when tests? ;; AttributeError: module 'py' has no attribute 'process'
(add-installed-pythonpath inputs outputs) " and not test_threading"
(invoke "python" "-m" "pytest" "-k" " and not test_transport"
(string-append ;; Tests below require network.
;; This test requires extra dependencies. " and not test_crumb_capture"
"not test_auto_enabling_integrations" " and not test_crumb_capture_hint"
"_catches_import_error" " and not test_httplib_misuse"
;; Tests below run pip command. ;; Unclear assert error
" and not test_unhandled_exception" " and not test_auto_session_tracking_with_aggregates"
" and not test_timeout_error" ;; Fails with IndexError.
" and not test_performance_no_error" " and not test_session_mode_defaults_to"
" and not test_performance_error" "_request_mode_in_wsgi_handler"))
" and not test_traces_sampler_gets_correct" #:phases
"_values_in_sampling_context" '(modify-phases %standard-phases
" and not test_handled_exception" (add-before 'check 'fix-test
;; Tests below require network. ;; See https://github.com/getsentry/sentry-python/pull/2712
" and not test_crumb_capture" (lambda _
" and not test_crumb_capture" (substitute* "tests/__init__.py"
" and not test_crumb_capture_hint" (("import pytest")
" and not test_httplib_misuse" "import warnings")
;; Fails with IndexError. (("pytest.warns\\(None\\)")
" and not test_session_mode_defaults_to" "warnings.catch_warnings(record=True)"))))
"_request_mode_in_wsgi_handler" (replace 'check
;; Tests below fail with pytest 7 (lambda* (#:key tests? test-flags #:allow-other-keys)
" and not test_leaks" (when tests?
" and not test_basic" (apply invoke "python" "-m" "pytest" test-flags)))))))
" and not test_keyboard_interrupt_is_captured"
" and not test_transaction_with_error"
" and not test_transaction_no_error"
" and not test_start_span_to_start_transaction"
" and not test_tracestate_computation"
" and not test_doesnt_add_new_tracestate_to_transaction_when_none_given"
" and not test_adds_tracestate_to_transaction_when_to_traceparent_called"
" and not test_adds_tracestate_to_transaction_when_getting_trace_context"
" and not test_tracestate_is_immutable_once_set"
" and not test_to_traceparent"
" and not test_to_tracestate"
" and not test_sentrytrace_extraction"
" and not test_tracestate_extraction"
" and not test_iter_headers"
" and not test_tracestate_reinflation"
" and not test_continue_from_headers"
" and not test_memory_usage"
" and not test_transactions_do_not_go_through_before_send"
" and not test_start_span_after_finish"
" and not test_span_trimming"
" and not test_transaction_naming"
" and not test_start_transaction"
" and not test_finds_transaction_on_scope"
" and not test_finds_transaction_when_descendent_span_is_on_scope"
" and not test_finds_orphan_span_on_scope"
" and not test_finds_non_orphan_span_on_scope"
" and not test_circular_references"
;; AttributeError: module 'py' has no attribute 'process'
;; See <https://github.com/pytest-dev/pytest-forked/issues/88>.
" and not test_threading"
" and not test_transport"))))))))
(native-inputs (native-inputs
(list python-django (list nss-certs-for-test
python-django
python-executing python-executing
python-gevent python-gevent
python-jsonschema python-jsonschema
@ -15463,7 +15432,9 @@ you do not want to store entirely on disk or on memory.")
python-pytest-django python-pytest-django
python-pytest-forked python-pytest-forked
python-pytest-localserver python-pytest-localserver
python-werkzeug)) python-setuptools
python-werkzeug
python-wheel))
(propagated-inputs (propagated-inputs
(list python-certifi python-urllib3)) (list python-certifi python-urllib3))
(home-page "https://github.com/getsentry/sentry-python") (home-page "https://github.com/getsentry/sentry-python")