diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-07-31 22:59:36 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-08-07 18:33:35 +0100 |
| commit | 483ac59d8fca731cd00bcf286687a9eea613938f (patch) | |
| tree | 24cf74012158f2ef32d1fa6b8d6afb72f9b7b2f7 /gnu | |
| parent | c43023090a255cc1f3b8bd947351d98d91adce4b (diff) | |
gnu: python-sphinxcontrib-programoutput: Switch to pyproject.
* gnu/packages/sphinx.scm (python-sphinxcontrib-programoutput):
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:phases>: Add a cleanup phase to avoid pytest
malfunction.
[native-inputs]: Add python-pytest, python-setuptools, python-wheel.
[home-page]: Update and reorder field.
Change-Id: I38a290fc6b7868db39b57dd75ed9d0ae3e9c5147
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/sphinx.scm | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm index 0808656e72e..1211a5f3e78 100644 --- a/gnu/packages/sphinx.scm +++ b/gnu/packages/sphinx.scm @@ -672,18 +672,32 @@ grid layout. It is no longer maintained and users are encouraged to use (package (name "python-sphinxcontrib-programoutput") (version "0.17") - (source (origin - (method url-fetch) - (uri (pypi-uri "sphinxcontrib-programoutput" version)) - (sha256 - (base32 - "0zrb2ny6y7nk84qmw5mds84fc4pxgqf4sjy7bk95b0zfrawfj3ih")))) - (build-system python-build-system) - (propagated-inputs (list python-sphinx)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/OpenNTI/sphinxcontrib-programoutput") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "02hpx6jnsx0cb1d1kk56gpj69x51m2d0prwwhsyhpwv257s64kz3")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'cleanup + (lambda* (#:key inputs outputs #:allow-other-keys) + (delete-file-recursively + (string-append (site-packages inputs outputs) + "/sphinxcontrib/programoutput/tests")) + (delete-file "src/sphinxcontrib/programoutput/__init__.py")))))) + (propagated-inputs (list python-sphinx)) + (native-inputs (list python-pytest python-setuptools python-wheel)) + (home-page "https://github.com/OpenNTI/sphinxcontrib-programoutput") (synopsis "Sphinx extension to include program output") (description "A Sphinx extension to literally insert the output of arbitrary commands into documents, helping you to keep your command examples up to date.") - (home-page "https://github.com/NextThought/sphinxcontrib-programoutput") (license license:bsd-2))) (define-public python-sphinxcontrib-qthelp |
