python3Packages.sphinx-argparse: 0.4.0 -> 0.5.2

This commit is contained in:
Martin Weinelt
2024-10-13 11:09:17 +02:00
parent 85a07a570f
commit fdf421f97d
@@ -2,32 +2,31 @@
lib,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
flit-core,
sphinx,
pytestCheckHook,
lxml,
}:
buildPythonPackage rec {
pname = "sphinx-argparse";
version = "0.4.0";
format = "setuptools";
version = "0.5.2";
pyproject = true;
src = fetchPypi {
pname = "sphinx_argparse";
inherit version;
hash = "sha256-4PNBhOtW8S+s53T7yHuICr25AXoJmNHsVZsmfpaX5Ek=";
hash = "sha256-5TUvj6iUtvtv2gSYuiip+NQ1lx70u8GmycZBTnZE8DI=";
};
postPatch = ''
# Fix tests for python-3.10 and add 3.10 to CI matrix
# Should be fixed in versions > 0.3.1
# https://github.com/ashb/sphinx-argparse/pull/3
substituteInPlace sphinxarg/parser.py \
--replace "if action_group.title == 'optional arguments':" "if action_group.title == 'optional arguments' or action_group.title == 'options':"
'';
build-system = [ flit-core ];
propagatedBuildInputs = [ sphinx ];
dependencies = [ sphinx ];
nativeCheckInputs = [ pytestCheckHook ];
nativeCheckInputs = [
lxml
pytestCheckHook
];
pythonImportsCheck = [ "sphinxarg" ];