guix-commits
[Top][All Lists]
Advanced

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

02/09: gnu: Add python-sphinx-autodoc-typehints.


From: guix-commits
Subject: 02/09: gnu: Add python-sphinx-autodoc-typehints.
Date: Sun, 14 Mar 2021 14:33:14 -0400 (EDT)

bavier pushed a commit to branch master
in repository guix.

commit 207aa62e6ba476ecefd101ba7643b5afa9c1de20
Author: Eric Bavier <bavier@member.fsf.org>
AuthorDate: Wed Mar 3 22:05:07 2021 -0600

    gnu: Add python-sphinx-autodoc-typehints.
    
    * gnu/packages/sphinx.scm (python-sphinx-autodoc-typehints): New variable.
---
 gnu/packages/sphinx.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm
index 29872ed..1704cbc 100644
--- a/gnu/packages/sphinx.scm
+++ b/gnu/packages/sphinx.scm
@@ -670,6 +670,33 @@ documentation when a change is detected.  It also includes 
a livereload
 enabled web server.")
     (license license:expat)))
 
+(define-public python-sphinx-autodoc-typehints
+  (package
+    (name "python-sphinx-autodoc-typehints")
+    (version "1.11.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "sphinx-autodoc-typehints" version))
+       (sha256
+        (base32
+         "086v9mg21pvfx0lfqjx2xf36hnzrsripfg345xi59f7xwb9scjr4"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-setuptools-scm" ,python-setuptools-scm)
+       ("python-sphinx" ,python-sphinx)))
+    (native-inputs
+     `(("python-dataclasses" ,python-dataclasses)
+       ("python-pytest" ,python-pytest)
+       ("python-sphinx" ,python-sphinx)
+       ("python-sphobjinv" ,python-sphobjinv)
+       ("python-typing-extensions" ,python-typing-extensions)))
+    (home-page "https://pypi.org/project/sphinx-autodoc-typehints/";)
+    (synopsis "Type hints 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)))
+
 (define-public python-nbsphinx
   (package
     (name "python-nbsphinx")



reply via email to

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