From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:56656) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1fhD-0004QM-MM for guix-patches@gnu.org; Tue, 11 Feb 2020 19:16:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j1fhC-0007oc-E8 for guix-patches@gnu.org; Tue, 11 Feb 2020 19:16:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51758) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j1fhC-0007oX-BG for guix-patches@gnu.org; Tue, 11 Feb 2020 19:16:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j1fhC-0004ky-5f for guix-patches@gnu.org; Tue, 11 Feb 2020 19:16:02 -0500 Subject: [bug#39572] [PATCH] gnu: Add python-sphinx-autodoc-typehints. Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:56540) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1fgp-0004Oy-3x for guix-patches@gnu.org; Tue, 11 Feb 2020 19:15:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j1fgn-0007dB-QI for guix-patches@gnu.org; Tue, 11 Feb 2020 19:15:38 -0500 Received: from sender4-pp-o91.zoho.com ([136.143.188.91]:25186) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j1fgn-0007cA-Ha for guix-patches@gnu.org; Tue, 11 Feb 2020 19:15:37 -0500 Message-ID: <20200212001420.24513-1-sirgazil@zoho.com> Date: Tue, 11 Feb 2020 19:14:20 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" Reply-to: sirgazil , sirgazil via Guix-patches From: sirgazil via Guix-patches via To: 39572@debbugs.gnu.org Cc: sirgazil * gnu/packages/sphinx.scm (python-sphinx-autodoc-typehints): New variable. --- gnu/packages/sphinx.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm index 4e4abccb04..41bde173c3 100644 --- a/gnu/packages/sphinx.scm +++ b/gnu/packages/sphinx.scm @@ -13,6 +13,7 @@ ;;; Copyright =C2=A9 2019 Nicolas Goaziou ;;; Copyright =C2=A9 2019 Alexandros Theodotou ;;; Copyright =C2=A9 2019 Brett Gilio +;;; Copyright =C2=A9 2020 sirgazil ;;; ;;; This file is part of GNU Guix. ;;; @@ -597,3 +598,27 @@ to be able to read and render the Doxygen xml output."= ) "A utility tool that provides several features that make it easy to translate and to apply translation to Sphinx generated document.") (license license:bsd-2))) + +(define-public python-sphinx-autodoc-typehints + (package + (name "python-sphinx-autodoc-typehints") + (version "1.10.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "sphinx-autodoc-typehints" version)) + (sha256 + (base32 + "1w6zy3cyp24jsdi8dcynrinafw2a0k5vblqy9lncm6j7cw0iicx6")))) + (build-system python-build-system) + (native-inputs + `(("python-setuptools-scm" ,python-setuptools-scm))) + (propagated-inputs + `(("python-sphinx" ,python-sphinx))) + (home-page "https://github.com/agronholm/sphinx-autodoc-typehints") + (synopsis "Type hints support for the Sphinx autodoc extension") + (description + "This extension allows you to use Python 3 annotations for +documenting acceptable argument types and return value types of +functions.") + (license license:expat))) --=20 2.25.0