From fdf421f97d3642ea4c8416379d8a5523162dc99d Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 29 Sep 2024 17:07:12 +0200 Subject: [PATCH] python3Packages.sphinx-argparse: 0.4.0 -> 0.5.2 --- .../sphinx-argparse/default.nix | 25 +++++++++---------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/sphinx-argparse/default.nix b/pkgs/development/python-modules/sphinx-argparse/default.nix index 8a88c346dbac..5bc24ba7ec93 100644 --- a/pkgs/development/python-modules/sphinx-argparse/default.nix +++ b/pkgs/development/python-modules/sphinx-argparse/default.nix @@ -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" ];