[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#48842] [PATCH v3 5/5] gnu: Add python-myst-parser.
From: |
Vinicius Monego |
Subject: |
[bug#48842] [PATCH v3 5/5] gnu: Add python-myst-parser. |
Date: |
Wed, 15 Sep 2021 16:41:30 +0000 |
* gnu/packages/sphinx.scm (python-myst-parser): New variable.
---
Updated to 0.15.2 and enabled full tests.
gnu/packages/sphinx.scm | 47 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm
index a7a3443707..b801ef41c7 100644
--- a/gnu/packages/sphinx.scm
+++ b/gnu/packages/sphinx.scm
@@ -46,6 +46,7 @@
#:use-module (gnu packages image)
#:use-module (gnu packages imagemagick)
#:use-module (gnu packages python-build)
+ #:use-module (gnu packages python-check)
#:use-module (gnu packages python-crypto)
#:use-module (gnu packages python-web)
#:use-module (gnu packages python-xyz)
@@ -619,6 +620,52 @@ and several other projects.")
(define-public python2-sphinx-rtd-theme
(package-with-python2 python-sphinx-rtd-theme))
+(define-public python-myst-parser
+ (package
+ (name "python-myst-parser")
+ (version "0.15.2")
+ (source
+ (origin
+ ;; There are no tests in the PyPI tarball.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/executablebooks/myst-parser")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0x894k0s2c1f71b5rh0vlcv8hxm1p1i3hqnyhi5qz5z35npnf3ms"))))
+ (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")))))))
+ (propagated-inputs
+ `(("python-docutils" ,python-docutils)
+ ("python-jinja2" ,python-jinja2)
+ ("python-markdown-it-py" ,python-markdown-it-py)
+ ("python-mdit-py-plugins"
+ ,python-mdit-py-plugins)
+ ("python-pyyaml" ,python-pyyaml)
+ ("python-sphinx" ,python-sphinx)))
+ (native-inputs
+ `(("python-beautifulsoup4" ,python-beautifulsoup4)
+ ("python-coverage" ,python-coverage)
+ ("python-linkify-it-py" ,python-linkify-it-py)
+ ("python-pytest" ,python-pytest)
+ ("python-pytest-cov" ,python-pytest-cov)
+ ("python-pytest-regressions"
+ ,python-pytest-regressions)))
+ (home-page "https://github.com/executablebooks/MyST-Parser")
+ (synopsis "Extended commonmark compliant parser")
+ (description
+ "MyST-parser is an extended commonmark compliant parser, with bridges to
+docutils and Sphinx.")
+ (license license:expat)))
+
(define-public python-breathe
(package
(name "python-breathe")
--
2.30.2