diff options
author | Nicolas Graves <ngraves@ngraves.fr> | 2024-05-10 00:53:40 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2024-05-23 22:47:39 +0200 |
commit | 1856baa7cb186b699571f08e7e05badeca87649b (patch) | |
tree | bd3f798d5d8e156c291d366b049eca1d37050425 | |
parent | 354549bf3797454251b30f2884618730d9a3defd (diff) |
gnu: python-sphinx-autodoc-typehints: Move to pyproject-build-system.
* gnu/packages/sphinx.scm (python-sphinx-autodoc-typehints):
[build-system]: Move to pyproject-build-system.
[arguments]<#:phases>: Move 'check phase replacement...
... to argument <#:test-flags>.
Change-Id: I2b41dffd5ee35442e1bb42f426bff69e17648785
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
-rw-r--r-- | gnu/packages/sphinx.scm | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm index a1eb6f46fa..f5444e3331 100644 --- a/gnu/packages/sphinx.scm +++ b/gnu/packages/sphinx.scm @@ -1140,9 +1140,12 @@ enabled web server.") (sha256 (base32 "049dlay21f4bccig31fkbzq2m8v0h6g63p1cn3dxay9q3h0mzgs0")))) - (build-system python-build-system) + (build-system pyproject-build-system) (arguments (list + ;; This test requires to download an objects.inv file + ;; from the Sphinx website. + #:test-flags '(list "-k" "not test_format_annotation") #:phases #~(modify-phases %standard-phases (add-before 'build 'pretend-version @@ -1150,14 +1153,7 @@ enabled web server.") ;; 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"))))))) + (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))))) (propagated-inputs (list python-sphinx)) (native-inputs (list python-nptyping |