diff --git a/pkgs/development/python-modules/help2man/default.nix b/pkgs/development/python-modules/help2man/default.nix index df9398fcb265..134e0429e842 100644 --- a/pkgs/development/python-modules/help2man/default.nix +++ b/pkgs/development/python-modules/help2man/default.nix @@ -2,7 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, - pythonOlder, + pythonAtLeast, jinja2, setuptools-scm, shtab, @@ -15,8 +15,6 @@ buildPythonPackage rec { version = "0.0.9"; pyproject = true; - disabled = pythonOlder "3.9"; - src = fetchFromGitHub { owner = "Freed-Wu"; repo = "help2man"; @@ -24,17 +22,24 @@ buildPythonPackage rec { hash = "sha256-BIDn+LQzBtDHUtFvIRL3NMXNouO3cMLibuYBoFtCUxI="; }; - nativeBuildInputs = [ + build-system = [ jinja2 setuptools-scm shtab tomli ]; - propagatedBuildInputs = [ jinja2 ]; + dependencies = [ jinja2 ]; 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; {