diff --git a/pkgs/development/python-modules/help2man/default.nix b/pkgs/development/python-modules/help2man/default.nix index df9398fcb265..b5ad7c39a829 100644 --- a/pkgs/development/python-modules/help2man/default.nix +++ b/pkgs/development/python-modules/help2man/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + pythonAtLeast, pythonOlder, jinja2, setuptools-scm, @@ -35,6 +36,13 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; + disabledTests = lib.optionals (pythonAtLeast "3.13") [ + # Checks the output of `help2man --help`. + # Broken since 3.13 due to changes in `argparse`. + # Upstream issue: https://github.com/Freed-Wu/help2man/issues/6 + "test_help" + ]; + pythonImportsCheck = [ "help2man" ]; meta = with lib; {