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 ];