From: Troy Figiel <troy@troyfigiel.com>
To: 68631@debbugs.gnu.org
Subject: [bug#68631] [PATCH v2] gnu: Add python-sphinx-issues.
Date: Sun, 21 Jan 2024 11:11:41 +0100 [thread overview]
Message-ID: <87h6j1ghf1.fsf@troyfigiel.com> (raw)
In-Reply-To: <87h6j7hu49.fsf@troyfigiel.com>
* gnu/packages/sphinx.scm (python-sphinx-issues): New variable.
---
gnu/packages/sphinx.scm | 43 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm
index 7e5a929241..c34d72f7ca 100644
--- a/gnu/packages/sphinx.scm
+++ b/gnu/packages/sphinx.scm
@@ -18,6 +18,7 @@
;;; Copyright © 2021, 2022 Vinicius Monego <monego@posteo.net>
;;; Copyright © 2021 Hugo Lecomte <hugo.lecomte@inria.fr>
;;; Copyright © 2021, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2024 Troy Figiel <troy@troyfigiel.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -372,6 +373,48 @@ (define-public python-sphinxcontrib-newsfeed
(home-page "https://bitbucket.org/prometheus/sphinxcontrib-newsfeed")
(license license:bsd-2)))
+(define-public python-sphinx-issues
+ (package
+ (name "python-sphinx-issues")
+ (version "4.0.0")
+ (source
+ (origin
+ ;; No tests in the PyPI tarball.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/sloria/sphinx-issues")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0q4as8gibvin0n6h5y1q4cwz3b1nwgs0idfc94dbndx42pjiz1vn"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases #~(modify-phases %standard-phases
+ (add-before 'check 'patch-sphinx-build-path
+ (lambda _
+ ;; The path to the sphinx-build binary is hardcoded to
+ ;; be in the same directory as the python
+ ;; executable. That does not work when building the
+ ;; package.
+ (substitute* "tests/test_sphinx_issues.py"
+ (((string-append "Path\\(sys\\.executable\\)"
+ "\\.parent\\.joinpath\\"
+ "(\"sphinx-build\"\\)"))
+ (string-append "\""
+ #$(this-package-native-input
+ "python-sphinx")
+ "/bin/sphinx-build\""))))))))
+ (native-inputs (list python-flit-core python-pytest python-sphinx))
+ (home-page "https://github.com/sloria/sphinx-issues")
+ (synopsis "Sphinx extension for linking to a project's issue tracker")
+ (description
+ "This package provides a Sphinx extension for linking to your project's
+issue tracker. This includes roles for linking to issues, pull requests and
+user profiles. Support for GitHub is built-in, but other services can also be
+supported with @code{sphinx-issues}.")
+ (license license:expat)))
+
(define-public python-sphinx-panels
(package
(name "python-sphinx-panels")
base-commit: 9b657bab84be02935d66483da1ebbe4bc78c52fb
--
2.42.0
next prev parent reply other threads:[~2024-01-25 22:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-21 10:11 [bug#68631] [PATCH] gnu: Add python-sphinx-issues Troy Figiel
2024-01-21 10:11 ` [bug#68631] [PATCH v3] " Troy Figiel
2024-01-21 10:11 ` Troy Figiel [this message]
2024-01-25 22:54 ` [bug#68631] [PATCH v2] " Troy Figiel
2024-01-25 20:21 ` [bug#68631] [PATCH] " Sharlatan Hellseher
2024-01-25 20:32 ` Troy Figiel
2024-01-25 22:49 ` [bug#68631] [PATCH v2] " Troy Figiel
2024-01-26 22:16 ` bug#68631: [PATCH] " Sharlatan Hellseher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h6j1ghf1.fsf@troyfigiel.com \
--to=troy@troyfigiel.com \
--cc=68631@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.