[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
224/233: gnu: python-sphinx-autodoc-typehints: Update to 1.18.1.
From: |
guix-commits |
Subject: |
224/233: gnu: python-sphinx-autodoc-typehints: Update to 1.18.1. |
Date: |
Sun, 24 Apr 2022 23:40:09 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython-polyglossia
in repository guix.
commit 57df216e178feac09335ef617bb60fe465de57fb
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
- 205/233: gnu: python-keyring: Fix test suite., (continued)
- 205/233: gnu: python-keyring: Fix test suite., guix-commits, 2022/04/24
- 206/233: gnu: Remove python2-keyring., guix-commits, 2022/04/24
- 210/233: snippets: Add a 'remove' snippet., guix-commits, 2022/04/24
- 211/233: gnu: python2-sqlalchemy: Skip a failing test., guix-commits, 2022/04/24
- 212/233: gnu: dynaconf: Fix build following python-click upgrade., guix-commits, 2022/04/24
- 213/233: gnu: python-numpydoc: Update to 1.2.1., guix-commits, 2022/04/24
- 214/233: gnu: python-sphinx: Update to 4.5.0., guix-commits, 2022/04/24
- 217/233: gnu: python-sphinx-click: Update to 4.0.3 and enable tests., guix-commits, 2022/04/24
- 220/233: gnu: python-sphinx-argparse: Update to 0.3.1., guix-commits, 2022/04/24
- 221/233: gnu: python-sphinx-cloud-sptheme: Update to 1.10.1 [still broken]., guix-commits, 2022/04/24
- 224/233: gnu: python-sphinx-autodoc-typehints: Update to 1.18.1.,
guix-commits <=
- 222/233: gnu: Add python-beartype., guix-commits, 2022/04/24
- 228/233: gnu: Add python-ipdb., guix-commits, 2022/04/24
- 230/233: pack: Fix match error when packing multiple packages in a deb archive., guix-commits, 2022/04/24
- 231/233: gnu: Add python-mpl-sphinx-theme., guix-commits, 2022/04/24
- 232/233: gnu: Add texlive-underscore., guix-commits, 2022/04/24