diff --git a/pkgs/development/python-modules/elastic-apm/default.nix b/pkgs/development/python-modules/elastic-apm/default.nix index 98e2394d0bdb..0d016b92ec3a 100644 --- a/pkgs/development/python-modules/elastic-apm/default.nix +++ b/pkgs/development/python-modules/elastic-apm/default.nix @@ -6,6 +6,7 @@ , certifi , ecs-logging , fetchFromGitHub +, fetchpatch , httpx , jinja2 , jsonschema @@ -40,6 +41,14 @@ buildPythonPackage rec { sha256 = "sha256-IaCl39rhsFLQwvQdPcqKruV/Mo3f7WH91UVgMG/cnOc="; }; + patches = [ + (fetchpatch { + # fix tests with sanic>=22.3.0 + url = "https://github.com/elastic/apm-agent-python/commit/114ee6ca998b4d6a5cb075a289af39cb963cf08a.patch"; + hash = "sha256-M6yEHjThKDCRQOmR0L94KEt8tUun1tPRULI6PNIlE/8="; + }) + ]; + propagatedBuildInputs = [ aiohttp blinker