Skip to content

Commit d9fe793

Browse files
authored
python313Packages.help2man: disable broken test (#404073)
2 parents 9628160 + 8cc329f commit d9fe793

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

pkgs/development/python-modules/help2man/default.nix

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
lib,
33
buildPythonPackage,
44
fetchFromGitHub,
5-
pythonOlder,
5+
pythonAtLeast,
66
jinja2,
77
setuptools-scm,
88
shtab,
@@ -15,26 +15,31 @@ buildPythonPackage rec {
1515
version = "0.0.9";
1616
pyproject = true;
1717

18-
disabled = pythonOlder "3.9";
19-
2018
src = fetchFromGitHub {
2119
owner = "Freed-Wu";
2220
repo = "help2man";
2321
rev = version;
2422
hash = "sha256-BIDn+LQzBtDHUtFvIRL3NMXNouO3cMLibuYBoFtCUxI=";
2523
};
2624

27-
nativeBuildInputs = [
25+
build-system = [
2826
jinja2
2927
setuptools-scm
3028
shtab
3129
tomli
3230
];
3331

34-
propagatedBuildInputs = [ jinja2 ];
32+
dependencies = [ jinja2 ];
3533

3634
nativeCheckInputs = [ pytestCheckHook ];
3735

36+
disabledTests = lib.optionals (pythonAtLeast "3.13") [
37+
# Checks the output of `help2man --help`.
38+
# Broken since 3.13 due to changes in `argparse`.
39+
# Upstream issue: https://github.com/Freed-Wu/help2man/issues/6
40+
"test_help"
41+
];
42+
3843
pythonImportsCheck = [ "help2man" ];
3944

4045
meta = with lib; {

0 commit comments

Comments
 (0)