guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 029353d5dff4ab22378fb6302798deb0ca7da8a1
Author: Nicolas Graves <[email protected]>
AuthorDate: Sun Nov 23 18:44:43 2025 +0100
gnu: python-sphinxext-opengraph: Switch to pyproject.
* gnu/packages/sphinx.scm (python-sphinxext-opengraph):
[build-system]: Switch to pyproject-build-system.
[arguments]<#:phases>: Remove 'check phase replacement. Add phase
'set-version.
[native-inputs]: Add python-setuptools.
Change-Id: I8e76fb1ec9ac494d4a345e61660e974f2397ca9f
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/sphinx.scm | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm
index 9def888c55..1c583eda82 100644
--- a/gnu/packages/sphinx.scm
+++ b/gnu/packages/sphinx.scm
@@ -1190,15 +1190,17 @@ translate and to apply translation to Sphinx generated
document.")
(file-name (git-file-name name version))
(sha256
(base32 "1wrgpan9z65fv4hbvisz4sypc4w5ammnxkyn5lhr43wdr6b967k1"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "pytest" "-vv")))))))
- (native-inputs (list python-beautifulsoup4 python-pytest python-sphinx))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'set-version
+ (lambda _
+ (substitute* "setup.py"
+ (("main") #$version)))))))
+ (native-inputs (list python-beautifulsoup4 python-pytest python-sphinx
+ python-setuptools))
(home-page "https://github.com/wpilibsuite/sphinxext-opengraph")
(synopsis "Sphinx Extension to enable OpenGraph support")
(description