From c59b05508fd90f47d74f53edef1216226201c3bf Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 14 Jul 2026 01:41:12 +0200 Subject: [PATCH] python3Packages.cross-web: ignore starlette httpx2 warning --- pkgs/development/python-modules/cross-web/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/cross-web/default.nix b/pkgs/development/python-modules/cross-web/default.nix index 8d69ff5d6211..86e7981a9d8e 100644 --- a/pkgs/development/python-modules/cross-web/default.nix +++ b/pkgs/development/python-modules/cross-web/default.nix @@ -70,6 +70,11 @@ buildPythonPackage (finalAttrs: { ] ++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies; + pytestFlags = [ + # Using `httpx` with `starlette.testclient` is deprecated; install `httpx2` instead. + "-Wignore::starlette.exceptions.StarletteDeprecationWarning" + ]; + pythonImportsCheck = [ "cross_web" ]; preCheck = ''