From d44759c562f4b8a661e75baa93d14173e0f423c9 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sun, 23 Nov 2025 13:31:31 +0100 Subject: [PATCH] gnu: python-sphinxcontrib-svg2pdfconverter: Switch to pyproject. * gnu/packages/sphinx.scm (python-sphinxcontrib-svg2pdfconverter): [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [native-inputs]: Add python-setuptools. Change-Id: I7ddd94d7c6a6e4b309ee0281f83387b1df75e2cd Signed-off-by: Sharlatan Hellseher --- gnu/packages/sphinx.scm | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm index 8d0309721ed58cebe43fab03b3e6d9c0fba8a4c4..cee030c93923848dd889a518db57cc04e6419be2 100644 --- a/gnu/packages/sphinx.scm +++ b/gnu/packages/sphinx.scm @@ -761,18 +761,21 @@ documents.") (package (name "python-sphinxcontrib-svg2pdfconverter") (version "1.2.0") - (source (origin - (method url-fetch) - (uri (pypi-uri "sphinxcontrib-svg2pdfconverter" version)) - (sha256 - (base32 - "07c5nmkyx2y0gwfjq66fhy68c24mclvs2qqv1z9ilvvypii4blb0")))) - (build-system python-build-system) - (arguments '(#:tests? #f)) ;no tests - (propagated-inputs - (list python-sphinx)) (home-page "https://github.com/missinglinkelectronics/sphinxcontrib-svg2pdfconverter") + (source + (origin + (method git-fetch) + (uri (git-reference + (url home-page) + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0ygsdhczq1vh79m42xxpxmls648crwr54pn8vvc64qv754s0wi0l")))) + (build-system pyproject-build-system) + (arguments (list #:tests? #f)) ; No tests. + (native-inputs (list python-setuptools)) + (propagated-inputs (list python-sphinx)) (synopsis "Sphinx SVG to PDF converter extension") (description "A Sphinx extension to convert SVG images to PDF in case the builder does not support SVG images natively (e.g. LaTeX).")