unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#51856] [PATCH 1/2] gnu: Add python-sphinx-prompt.
@ 2021-11-15  4:35 Vinicius Monego
  2021-11-15  4:37 ` [bug#51856] [PATCH 2/2] gnu: Add python-sphinxext-opengraph Vinicius Monego
  2021-12-10 14:18 ` bug#51856: [PATCH 1/2] gnu: Add python-sphinx-prompt Ludovic Courtès
  0 siblings, 2 replies; 3+ messages in thread
From: Vinicius Monego @ 2021-11-15  4:35 UTC (permalink / raw)
  To: 51856; +Cc: Vinicius Monego

* gnu/packages/sphinx.scm (python-sphinx-prompt): New variable.
---
 gnu/packages/sphinx.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm
index a7a3443707..86b867871a 100644
--- a/gnu/packages/sphinx.scm
+++ b/gnu/packages/sphinx.scm
@@ -502,6 +502,37 @@ introspection of @code{zope.interface} instances in code.")
 (define-public python2-sphinx-repoze-autointerface
   (package-with-python2 python-sphinx-repoze-autointerface))
 
+(define-public python-sphinx-prompt
+  (package
+    (name "python-sphinx-prompt")
+    (version "1.5.0")
+    (source
+     (origin
+       (method git-fetch)               ; no source release in PyPI
+       (uri (git-reference
+             (url "https://github.com/sbrunner/sphinx-prompt")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0x9wmgf04rzivbzp7jv1b7fkhkpi02lpk5w1qf4i7bcgih00ym8a"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+             (when tests?
+               (add-installed-pythonpath inputs outputs)
+               (invoke "python" "-m" "pytest")))))))
+    (native-inputs
+     `(("python-pytest" ,python-pytest)
+       ("python-sphinx" ,python-sphinx)))
+    (home-page "https://github.com/sbrunner/sphinx-prompt")
+    (synopsis "Sphinx directive to add unselectable prompt")
+    (description
+     "This package provides a Sphinx directive to add unselectable prompt.")
+    (license license:bsd-3)))
+
 (define-public python-sphinx-alabaster-theme
   (package
     (name "python-sphinx-alabaster-theme")

base-commit: 193d7b5b450d2004c26720e488a9cce930542e9e
-- 
2.30.2





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#51856] [PATCH 2/2] gnu: Add python-sphinxext-opengraph.
  2021-11-15  4:35 [bug#51856] [PATCH 1/2] gnu: Add python-sphinx-prompt Vinicius Monego
@ 2021-11-15  4:37 ` Vinicius Monego
  2021-12-10 14:18 ` bug#51856: [PATCH 1/2] gnu: Add python-sphinx-prompt Ludovic Courtès
  1 sibling, 0 replies; 3+ messages in thread
From: Vinicius Monego @ 2021-11-15  4:37 UTC (permalink / raw)
  To: 51856; +Cc: Vinicius Monego

* gnu/packages/sphinx.scm (python-sphinxext-opengraph): New variable.
---
 gnu/packages/sphinx.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm
index 86b867871a..9aafcb9213 100644
--- a/gnu/packages/sphinx.scm
+++ b/gnu/packages/sphinx.scm
@@ -693,6 +693,38 @@ to be able to read and render the Doxygen xml output.")
 translate and to apply translation to Sphinx generated document.")
     (license license:bsd-2)))
 
+(define-public python-sphinxext-opengraph
+  (package
+    (name "python-sphinxext-opengraph")
+    (version "0.4.2")
+    (source
+     (origin
+       (method git-fetch)               ; no tests in PyPI release
+       (uri (git-reference
+             (url "https://github.com/wpilibsuite/sphinxext-opengraph")
+             (commit (string-append "v"  version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0dka44wri7agcr1jd641hq6j7qlbycligp80ngf32l5asqz1mgzp"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+             (when tests?
+               (add-installed-pythonpath inputs outputs)
+               (invoke "python" "-m" "pytest")))))))
+    (native-inputs
+     `(("python-beautifulsoup4" ,python-beautifulsoup4)
+       ("python-pytest" ,python-pytest)
+       ("python-sphinx" ,python-sphinx)))
+    (home-page "https://github.com/wpilibsuite/sphinxext-opengraph")
+    (synopsis "Sphinx Extension to enable OpenGraph support")
+    (description
+     "This package provides a Sphinx Extension to generate OG metadata.")
+    (license license:bsd-3)))
+
 (define-public python-sphinx-autobuild
   (package
     (name "python-sphinx-autobuild")
-- 
2.30.2





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* bug#51856: [PATCH 1/2] gnu: Add python-sphinx-prompt.
  2021-11-15  4:35 [bug#51856] [PATCH 1/2] gnu: Add python-sphinx-prompt Vinicius Monego
  2021-11-15  4:37 ` [bug#51856] [PATCH 2/2] gnu: Add python-sphinxext-opengraph Vinicius Monego
@ 2021-12-10 14:18 ` Ludovic Courtès
  1 sibling, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2021-12-10 14:18 UTC (permalink / raw)
  To: Vinicius Monego; +Cc: 51856-done

Hi,

Vinicius Monego <monego@posteo.net> skribis:

> * gnu/packages/sphinx.scm (python-sphinx-prompt): New variable.

[...]

> * gnu/packages/sphinx.scm (python-sphinxext-opengraph): New variable.

Applied, thanks!

Ludo’.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-12-10 14:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-15  4:35 [bug#51856] [PATCH 1/2] gnu: Add python-sphinx-prompt Vinicius Monego
2021-11-15  4:37 ` [bug#51856] [PATCH 2/2] gnu: Add python-sphinxext-opengraph Vinicius Monego
2021-12-10 14:18 ` bug#51856: [PATCH 1/2] gnu: Add python-sphinx-prompt Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).