From 14b561e2a46d32e1d66c014e70ec42b6d1b13528 Mon Sep 17 00:00:00 2001 From: Harinn Date: Mon, 18 May 2026 14:26:42 +0700 Subject: [PATCH] python3Packages.typed-argparse: disable tests broken by python 3.14 --- .../python-modules/typed-argparse/default.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/typed-argparse/default.nix b/pkgs/development/python-modules/typed-argparse/default.nix index 4b15c9318a77..3f042cb8ea89 100644 --- a/pkgs/development/python-modules/typed-argparse/default.nix +++ b/pkgs/development/python-modules/typed-argparse/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + pythonAtLeast, setuptools, typing-extensions, pytestCheckHook, @@ -24,13 +25,21 @@ buildPythonPackage { dependencies = [ typing-extensions ]; - pythonImportsCheck = [ "typed_argparse" ]; - nativeCheckInputs = [ pytestCheckHook pytest-cov-stub ]; + # https://github.com/typed-argparse/typed-argparse/pull/82 + disabledTests = lib.optionals (pythonAtLeast "3.14") [ + "test_nargs_with_choices__literal_illegal_default" + "test_nargs_with_choices__enum_illegal_default" + "test_bindings_check" + "test_check_reserved_names" + ]; + + pythonImportsCheck = [ "typed_argparse" ]; + meta = { description = "Type-safe Python argument parsing"; homepage = "https://typed-argparse.github.io/typed-argparse/";