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/";