gnu: Add python-sphinxext-opengraph.
* gnu/packages/sphinx.scm (python-sphinxext-opengraph): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
dc5ace95d3
commit
6a887e4909
1 changed files with 32 additions and 0 deletions
|
@ -693,6 +693,38 @@ (define-public python-sphinx-intl
|
|||
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")
|
||||
|
|
Loading…
Reference in a new issue