From 35286d899e85c411843d152b0495995fb64f94e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 12 May 2025 21:04:00 -0700 Subject: [PATCH] python3Packages.elastic-apm: fix tests --- pkgs/development/python-modules/elastic-apm/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/python-modules/elastic-apm/default.nix b/pkgs/development/python-modules/elastic-apm/default.nix index 88f1ae00a475..0146091c8ea6 100644 --- a/pkgs/development/python-modules/elastic-apm/default.nix +++ b/pkgs/development/python-modules/elastic-apm/default.nix @@ -7,6 +7,7 @@ certifi, ecs-logging, fetchFromGitHub, + fetchpatch, httpx, jinja2, jsonschema, @@ -44,6 +45,14 @@ buildPythonPackage rec { hash = "sha256-S1Ebo9AWN+Mf3OFwxNTiR/AZtje3gNiYkZnVqGb7D4c="; }; + patches = [ + (fetchpatch { + name = "fix-tests-with-latest-starlette-and-sanic.patch"; + url = "https://github.com/elastic/apm-agent-python/commit/80d167f54b6bf1db8b6e7ee52e2ac6803bc64f54.patch"; + hash = "sha256-VtA7+SyEZiL3aqpikyYJQ4tmdmsUpIdkSx6RtC1AzqY="; + }) + ]; + pythonRelaxDeps = [ "wrapt" ]; build-system = [ setuptools ];