guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#39572] [PATCH] gnu: Add python-sphinx-autodoc-typehints.


From: sirgazil
Subject: [bug#39572] [PATCH] gnu: Add python-sphinx-autodoc-typehints.
Date: Tue, 11 Feb 2020 19:14:20 -0500

* 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 © 2019 Nicolas Goaziou <address@hidden>
 ;;; Copyright © 2019 Alexandros Theodotou <address@hidden>
 ;;; Copyright © 2019 Brett Gilio <address@hidden>
+;;; Copyright © 2020 sirgazil <address@hidden>
 ;;;
 ;;; 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)))
-- 
2.25.0







reply via email to

[Prev in Thread] Current Thread [Next in Thread]