From 4c0632ba2dd18393ad186b712e69379310938a64 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sun, 23 Nov 2025 18:38:57 +0100 Subject: [PATCH] gnu: python-sphinx-intl: Switch to pyproject. * gnu/packages/sphinx.scm (python-sphinx-intl): [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]<#:test-flags>: Disable failing tests. [native-inputs]: Add python-mock, python-pytest, python-setuptools. Change-Id: I7b5f4ab526d39feb2ed26025c908179ea22d0b48 Signed-off-by: Sharlatan Hellseher --- gnu/packages/sphinx.scm | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm index 67899f5b79698187a75651a1cc85a6cd38879058..9def888c5508cb9df28c1baee347701c52c81627 100644 --- a/gnu/packages/sphinx.scm +++ b/gnu/packages/sphinx.scm @@ -1153,13 +1153,22 @@ to be able to read and render the Doxygen xml output.") (version "2.0.1") (source (origin - (method url-fetch) - (uri (pypi-uri "sphinx-intl" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/sphinx-doc/sphinx-intl") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 "1d1q0sanjp4nkfvhsxi75zf3xjyyi8nzxvl3v7l0jy9ld70nwnmj")))) - (build-system python-build-system) - (propagated-inputs - (list python-sphinx python-click)) + (base32 "0sla69l477qrr5jb3aw76qg4qg4gw7y5w557xbmbzm6jsv18ck86")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + ;; These tests require the transifex_client library. + #~(list "--ignore=tests/test_cmd_transifex.py" + "--ignore=tests/test_transifex.py"))) + (native-inputs (list python-mock python-pytest python-setuptools)) + (propagated-inputs (list python-sphinx python-click)) (home-page "https://github.com/sphinx-doc/sphinx-intl") (synopsis "Sphinx utility that makes it easy to translate and to apply translation")