From d78ec4a36b0c903aed0e90220e61e2a3d3c02b58 Mon Sep 17 00:00:00 2001 From: Ben Siraphob Date: Sun, 19 Apr 2026 11:17:38 -0700 Subject: [PATCH] python3Packages.sentry-sdk: fix build on x86_64-darwin --- pkgs/development/python-modules/sentry-sdk/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/sentry-sdk/default.nix b/pkgs/development/python-modules/sentry-sdk/default.nix index 6e5d7602a967..24c66a961416 100644 --- a/pkgs/development/python-modules/sentry-sdk/default.nix +++ b/pkgs/development/python-modules/sentry-sdk/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + pythonAtLeast, # build-system setuptools, @@ -215,7 +216,13 @@ buildPythonPackage (finalAttrs: { # KeyError: 'sentry.release' "test_logs_attributes" "test_logger_with_all_attributes" - ]; + ] + ++ + lib.optionals (pythonAtLeast "3.14" && stdenv.hostPlatform.isx86_64 && stdenv.hostPlatform.isDarwin) + [ + # profiler_id not populated on darwin + "test_segment_span_has_profiler_id" + ]; pythonImportsCheck = [ "sentry_sdk" ];