From 885c1bd06ec8212f3882bf81ff0900a7fadda735 Mon Sep 17 00:00:00 2001 From: Hugo Lecomte Date: Mon, 5 Jul 2021 09:29:29 +0200 Subject: gnu: Add python-sphinxcontrib-autoprogram. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/sphinx.scm (python-sphinxcontrib-autoprogram): New variable. Signed-off-by: Ludovic Courtès --- gnu/packages/sphinx.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'gnu/packages') diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm index 19015092c7..8928b795f4 100644 --- a/gnu/packages/sphinx.scm +++ b/gnu/packages/sphinx.scm @@ -812,3 +812,28 @@ Jupyter kernel, and embeds outputs of that code in the document. It has support for rich output such as images, LaTeX math and even JavaScript widgets, and supports thebelab for live code execution with minimal effort.") (license license:bsd-3))) + +(define-public python-sphinxcontrib-autoprogram + (package + (name "python-sphinxcontrib-autoprogram") + (version "0.1.7") + (source + (origin + (method url-fetch) + (uri (pypi-uri "sphinxcontrib-autoprogram" version)) + (sha256 + (base32 + "06hzim0d3fd72kf30fyjbbm5n8ibyybic0kf62gm79qp50zjwr5w")))) + (build-system python-build-system) + (propagated-inputs + `(("python-six" ,python-six))) + (native-inputs + `(("python-sphinx" ,python-sphinx))) + (home-page "https://github.com/sphinx-contrib/autoprogram") + (synopsis "Documenting CLI programs") + (description + "This Sphinx extension, @code{sphinxcontrib.autoprogram}, provides an +automated way to document command-line programs. It scans +@code{argparse.ArgumentParser} object, and then expands it into a set of +@code{.. program::} and @code{.. option::} directives.") + (license license:bsd-2))) -- cgit v1.2.3