python3Packages.tyro: 1.0.5 -> 1.0.8 (#493992)

This commit is contained in:
Martin Weinelt
2026-02-25 15:16:54 +00:00
committed by GitHub
@@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitHub,
pythonAtLeast,
# build-system
hatchling,
@@ -23,18 +24,19 @@
pydantic,
pytestCheckHook,
torch,
universal-pathlib,
}:
buildPythonPackage rec {
pname = "tyro";
version = "1.0.5";
version = "1.0.8";
pyproject = true;
src = fetchFromGitHub {
owner = "brentyi";
repo = "tyro";
tag = "v${version}";
hash = "sha256-/6z3XDN5WdVPVfA1LckpIAUis3dNOwg5hobR2sHlocA=";
hash = "sha256-GTgbzGIIZrkMUgjqMWZVXRVhp9mcxfnDQ/dRApotjww=";
};
build-system = [ hatchling ];
@@ -57,6 +59,20 @@ buildPythonPackage rec {
pydantic
pytestCheckHook
torch
universal-pathlib
];
disabledTests = lib.optionals (pythonAtLeast "3.13") [
# Bash path completion relies on the programmable-completion builtin `compgen`,
# which is unavailable in the stdenv build shell.
"test_bash_path_completion_marker"
# In Nix builds, the long `python -m pytest` argv[0] path gets line-wrapped in
# argparse error output, splitting `class-b` and `)` so this literal-match fails.
"test_similar_arguments_subcommands_multiple_contains_match"
# Same wrapped-output literal-match issue as above for the cascading-args variant.
"test_similar_arguments_subcommands_multiple_contains_match_cascading"
];
pythonImportsCheck = [ "tyro" ];