[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
224/232: gnu: python-sphinx-autodoc-typehints: Update to 1.18.1.
From: |
guix-commits |
Subject: |
224/232: gnu: python-sphinx-autodoc-typehints: Update to 1.18.1. |
Date: |
Sun, 24 Apr 2022 23:59:16 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython-polyglossia
in repository guix.
commit 3a061418e68e3c74a762a9203939a92ab1aa90a9
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Apr 21 23:31:24 2022 -0400
gnu: python-sphinx-autodoc-typehints: Update to 1.18.1.
* gnu/packages/sphinx.scm (python-sphinx-autodoc-typehints): Update to
1.18.1.
[source]: Use git.
[argument]: New field.
[propagated-inputs]: Add python-sphinx.
[native-inputs]: Remove python-dataclasses and python-sphinx. Add
python-nptyping and python-setuptools-scm.
---
gnu/packages/sphinx.scm | 39 +++++++++++++++++++++++++++++++--------
1 file changed, 31 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm
index 4b485d53c0..5e0ac96ab6 100644
--- a/gnu/packages/sphinx.scm
+++ b/gnu/packages/sphinx.scm
@@ -50,6 +50,7 @@
#:use-module (gnu packages imagemagick)
#:use-module (gnu packages python)
#:use-module (gnu packages python-build)
+ #:use-module (gnu packages python-check)
#:use-module (gnu packages python-crypto)
#:use-module (gnu packages python-web)
#:use-module (gnu packages python-xyz)
@@ -872,20 +873,42 @@ enabled web server.")
(define-public python-sphinx-autodoc-typehints
(package
(name "python-sphinx-autodoc-typehints")
- (version "1.11.1")
+ (version "1.18.1")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "sphinx-autodoc-typehints" version))
+ (method git-fetch) ;no tests in pypi archive
+ (uri (git-reference
+ (url "https://github.com/tox-dev/sphinx-autodoc-typehints")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
(base32
- "086v9mg21pvfx0lfqjx2xf36hnzrsripfg345xi59f7xwb9scjr4"))))
+ "16yhpwfdmybir80a6892cnr98m58p19rklmjdlzhk3njx7di8jzp"))))
(build-system python-build-system)
- (propagated-inputs
- (list python-setuptools-scm python-sphinx))
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'pretend-version
+ ;; The version string is usually derived via setuptools-scm, but
+ ;; without the git metadata available, the version string is set to
+ ;; '0.0.0'.
+ (lambda _
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv" "tests"
+ ;; This test requires to download an objects.inv file
+ ;; from the Sphinx website.
+ "-k" "not test_format_annotation")))))))
+ (propagated-inputs (list python-sphinx))
(native-inputs
- (list python-dataclasses python-pytest python-sphinx
- python-sphobjinv python-typing-extensions))
+ (list python-nptyping
+ python-pytest
+ python-setuptools-scm
+ python-sphobjinv
+ 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
- 193/232: gnu: python-locust: Update to 2.8.6., (continued)
- 193/232: gnu: python-locust: Update to 2.8.6., guix-commits, 2022/04/24
- 194/232: gnu: Remove python2-jmespath., guix-commits, 2022/04/24
- 196/232: gnu: python-miio: Update to 0.5.11., guix-commits, 2022/04/24
- 202/232: gnu: libgrss: Use libsoup-minimal-2 to fix build., guix-commits, 2022/04/24
- 201/232: gnu: markets: Add python-wrapper to fix build., guix-commits, 2022/04/24
- 204/232: gnu: emacsy: Use webkitgtk-with-libsoup2., guix-commits, 2022/04/24
- 208/232: gnu: python-flask-wtf: Update to 1.0.1., guix-commits, 2022/04/24
- 213/232: gnu: python-numpydoc: Update to 1.2.1., guix-commits, 2022/04/24
- 216/232: gnu: python-sphinx-copybutton: Update to 0.5.0., guix-commits, 2022/04/24
- 219/232: gnu: python-sphinxcontrib-programoutput: Update to 0.17 and enable tests., guix-commits, 2022/04/24
- 224/232: gnu: python-sphinx-autodoc-typehints: Update to 1.18.1.,
guix-commits <=
- 226/232: gnu: python-sphinx-rtd-theme: Update to 1.0.0., guix-commits, 2022/04/24
- 229/232: gnu: python-pudb: Update to 2022.1.1 and rename from pudb., guix-commits, 2022/04/24
- 231/232: gnu: Add texlive-underscore., guix-commits, 2022/04/24
- 15/232: gnu: Add texlive-makecmds., guix-commits, 2022/04/24
- 192/232: gnu: python-cantools: Update to 37.0.7., guix-commits, 2022/04/24
- 65/232: gnu: Add python-ordered-set., guix-commits, 2022/04/24
- 67/232: gnu: Add python-ubelt., guix-commits, 2022/04/24
- 74/232: gnu: python-scipy: Move input fields below arguments field., guix-commits, 2022/04/24
- 80/232: gnu: Add skia., guix-commits, 2022/04/24
- 85/232: gnu: Add python-sfdlib., guix-commits, 2022/04/24