From 218e6aa90b55a7445e35c427acbeee686f365f76 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sun, 1 Feb 2026 10:51:16 +0000 Subject: [PATCH] python3Packages.litestar: ignore warning in pytest for python>=3.14 Tracking: https://github.com/NixOS/nixpkgs/issues/475732 --- pkgs/development/python-modules/litestar/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/litestar/default.nix b/pkgs/development/python-modules/litestar/default.nix index 1f38166a6972..2b1da81ceb9a 100644 --- a/pkgs/development/python-modules/litestar/default.nix +++ b/pkgs/development/python-modules/litestar/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + pythonAtLeast, # build-system hatchling, @@ -150,6 +151,11 @@ buildPythonPackage (finalAttrs: { "docs/examples/" ]; + pytestFlags = lib.optionals (pythonAtLeast "3.14") [ + # UserWarning: Core Pydantic V1 functionality isn't compatible with Python 3.14 or greater. + "-Wignore::UserWarning" + ]; + disabledTests = [ # StartupError "test_subprocess_async_client"