[PATCH 0/6] gnu: Add python-myst-parser.

  • Done
  • quality assurance status badge
Details
2 participants
  • Vinicius Monego
  • Xinglu Chen
Owner
unassigned
Submitted by
Vinicius Monego
Severity
normal
V
V
Vinicius Monego wrote on 5 Jun 2021 03:45
(address . guix-patches@gnu.org)(name . Vinicius Monego)(address . monego@posteo.net)
20210605014517.18212-1-monego@posteo.net
Vinicius Monego (6):
gnu: Add python-pytest-datadir.
gnu: Add python-pytest-regressions.
gnu: Add python-linkify-it-py.
gnu: Add python-markdown-it-py.
gnu: Add python-mdit-py-plugins.
gnu: Add python-myst-parser.

gnu/packages/python-check.scm | 73 ++++++++++++++++
gnu/packages/python-xyz.scm | 160 ++++++++++++++++++++++++++++++++++
gnu/packages/sphinx.scm | 53 +++++++++++
3 files changed, 286 insertions(+)

--
2.31.1
V
V
Vinicius Monego wrote on 5 Jun 2021 03:46
[PATCH 1/6] gnu: Add python-pytest-datadir.
(address . 48842@debbugs.gnu.org)(name . Vinicius Monego)(address . monego@posteo.net)
20210605014655.18459-1-monego@posteo.net
* gnu/packages/python-check.scm (python-pytest-datadir): New variable.
---
gnu/packages/python-check.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)

Toggle diff (43 lines)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 1206dda5c4..abcbb6d805 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -882,6 +882,36 @@ framework.")
for the @code{pytest} framework.")
(license license:expat)))
+(define-public python-pytest-datadir
+ (package
+ (name "python-pytest-datadir")
+ (version "1.3.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pytest-datadir" version))
+ (sha256
+ (base32 "066bg6wlzgq2pqnjp73dfrcmk8951xw3aqcxa3p1axgqimrixbyk"))))
+ (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-pathlib2" ,python-pathlib2)))
+ (native-inputs
+ `(("python-pytest" ,python-pytest)
+ ("python-setuptools-scm" ,python-setuptools-scm)))
+ (home-page "https://github.com/gabrielcnr/pytest-datadir")
+ (synopsis "Pytest plugin for test data directories and files")
+ (description
+ "Pytest plugin for test data directories and files.")
+ (license license:expat)))
+
(define-public python-pytest-benchmark
(package
(name "python-pytest-benchmark")
--
2.31.1
V
V
Vinicius Monego wrote on 5 Jun 2021 03:46
[PATCH 2/6] gnu: Add python-pytest-regressions.
(address . 48842@debbugs.gnu.org)(name . Vinicius Monego)(address . monego@posteo.net)
20210605014655.18459-2-monego@posteo.net
* gnu/packages/python-check.scm (python-pytest-regressions): New variable.
---
gnu/packages/python-check.scm | 43 +++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)

Toggle diff (66 lines)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index abcbb6d805..19e9766229 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -35,9 +35,11 @@
#:use-module (gnu packages django)
#:use-module (gnu packages openstack)
#:use-module (gnu packages python-build)
+ #:use-module (gnu packages python-science)
#:use-module (gnu packages python-web)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages qt)
+ #:use-module (gnu packages sphinx)
#:use-module (gnu packages web)
#:use-module (gnu packages xml)
#:use-module (gnu packages xorg)
@@ -912,6 +914,47 @@ for the @code{pytest} framework.")
"Pytest plugin for test data directories and files.")
(license license:expat)))
+(define-public python-pytest-regressions
+ (package
+ (name "python-pytest-regressions")
+ (version "2.2.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pytest-regressions" version))
+ (sha256
+ (base32 "05jpsvv8rj8i4x24fphpnar5dl4s6d6bw6ikjk5d8v96rdviz9qm"))))
+ (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"
+ ;; DeprecrationWarning.
+ "-k" "not test_image_regression")))))))
+ (propagated-inputs
+ `(("python-pytest-datadir" ,python-pytest-datadir)
+ ("python-pyyaml" ,python-pyyaml)))
+ (native-inputs
+ `(("python-matplotlib" ,python-matplotlib)
+ ("python-numpy" ,python-numpy)
+ ("python-pandas" ,python-pandas)
+ ("python-pillow" ,python-pillow)
+ ("python-pytest" ,python-pytest)
+ ("python-restructuredtext-lint"
+ ,python-restructuredtext-lint)
+ ("python-setuptools-scm" ,python-setuptools-scm)))
+ (home-page "https://github.com/ESSS/pytest-regressions")
+ (synopsis "Easy to use fixtures to write regression tests")
+ (description
+ "This Pytest plugin makes it simple to test general data, images, files,
+and numeric tables by saving expected data in a data directory that can be
+used to verify that future runs produce the same data.")
+ (license license:expat)))
+
(define-public python-pytest-benchmark
(package
(name "python-pytest-benchmark")
--
2.31.1
V
V
Vinicius Monego wrote on 5 Jun 2021 03:46
[PATCH 3/6] gnu: Add python-linkify-it-py.
(address . 48842@debbugs.gnu.org)(name . Vinicius Monego)(address . monego@posteo.net)
20210605014655.18459-3-monego@posteo.net
* gnu/packages/python-xyz.scm (python-linkify-it-py, python-uc-micro-py): New variables.
---
gnu/packages/python-xyz.scm | 72 +++++++++++++++++++++++++++++++++++++
1 file changed, 72 insertions(+)

Toggle diff (85 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index d978942402..89717975ee 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -7027,6 +7027,78 @@ cluster without needing to write any wrapper code yourself.")
(define-public python2-gridmap
(package-with-python2 python-gridmap))
+(define python-uc-micro-py
+ (package
+ (name "python-uc-micro-py")
+ (version "1.0.1")
+ (source
+ (origin
+ ;; There are no tests in the PyPI tarball.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/tsutsu3/uc.micro-py")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "17f55gi55rg47nm88fn3f8851ph03dgykdp011lxr3j6hk18lyfv"))))
+ (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-coverage" ,python-coverage)
+ ("python-pytest" ,python-pytest)
+ ("python-pytest-cov" ,python-pytest-cov)))
+ (home-page "https://github.com/tsutsu3/uc.micro-py")
+ (synopsis "Micro subset of unicode data files for linkify-it-py projects")
+ (description
+ "This is a Python port of @code{uc.micro}. This package content is only
+for the @code{linkify-it-py} project needs.")
+ (license license:expat)))
+
+(define-public python-linkify-it-py
+ (package
+ (name "python-linkify-it-py")
+ (version (package-version python-uc-micro-py))
+ (source
+ (origin
+ ;; There are no tests in the PyPI tarball.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/tsutsu3/linkify-it-py")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "00r4sxgvlxkm5k2jwvrsxgzcccfkfzd0knypbcig5almisg7bpl1"))))
+ (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-uc-micro-py" ,python-uc-micro-py)))
+ (native-inputs
+ `(("python-black" ,python-black)
+ ("python-coverage" ,python-coverage)
+ ("python-flake8" ,python-flake8)
+ ("python-isort" ,python-isort)
+ ("python-pytest" ,python-pytest)
+ ("python-pytest-cov" ,python-pytest-cov)))
+ (home-page "https://github.com/tsutsu3/linkify-it-py")
+ (synopsis "Links recognition library with full unicode support")
+ (description
+ "This is a Python port of @code{linkify-it}.")
+ (license license:expat)))
+
(define-public python-honcho
(package
(name "python-honcho")
--
2.31.1
V
V
Vinicius Monego wrote on 5 Jun 2021 03:46
[PATCH 4/6] gnu: Add python-markdown-it-py.
(address . 48842@debbugs.gnu.org)(name . Vinicius Monego)(address . monego@posteo.net)
20210605014655.18459-4-monego@posteo.net
* gnu/packages/python-xyz.scm (python-markdown-it-py): New variable.
---
gnu/packages/python-xyz.scm | 51 +++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)

Toggle diff (64 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 89717975ee..fd7b1dd5f1 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -7099,6 +7099,57 @@ for the @code{linkify-it-py} project needs.")
"This is a Python port of @code{linkify-it}.")
(license license:expat)))
+(define-public python-markdown-it-py
+ (package
+ (name "python-markdown-it-py")
+ (version "1.1.0")
+ (source
+ (origin
+ ;; There are no tests in the PyPI tarball.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/executablebooks/markdown-it-py")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0h7rn3rcqfwmnqs97qczwkw9w5g4df8bgn6sw7k149svfqgrkf56"))))
+ (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-attrs" ,python-attrs)
+ ("python-typing-extensions"
+ ,python-typing-extensions)))
+ (native-inputs
+ `(("python-coverage" ,python-coverage)
+ ("python-linkify-it-py" ,python-linkify-it-py)
+ ("python-psutil" ,python-psutil)
+ ("python-pytest" ,python-pytest)
+ ("python-pytest-benchmark"
+ ,python-pytest-benchmark)
+ ("python-pytest-cov" ,python-pytest-cov)
+ ("python-pytest-regressions"
+ ,python-pytest-regressions)))
+ (home-page "https://github.com/executablebooks/markdown-it-py")
+ (synopsis "Python port of markdown-it")
+ (description
+ "This is a Python port of @code{markdown-it}, and some of its associated
+plugins. Features:
+
+@itemize
+@item Follows the CommonMark spec for baseline parsing.
+@item Configurable syntax: Add new rules and even replace existing ones.
+@item Pluggable: Adds syntax extensions to extend the parser.
+@item Safe by default.
+@end itemize")
+ (license license:expat)))
+
(define-public python-honcho
(package
(name "python-honcho")
--
2.31.1
V
V
Vinicius Monego wrote on 5 Jun 2021 03:46
[PATCH 5/6] gnu: Add python-mdit-py-plugins.
(address . 48842@debbugs.gnu.org)(name . Vinicius Monego)(address . monego@posteo.net)
20210605014655.18459-5-monego@posteo.net
* gnu/packages/python-xyz.scm (python-mdit-py-plugins): New variable.
---
gnu/packages/python-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)

Toggle diff (50 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index fd7b1dd5f1..d357a92474 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -7150,6 +7150,43 @@ plugins. Features:
@end itemize")
(license license:expat)))
+(define-public python-mdit-py-plugins
+ (package
+ (name "python-mdit-py-plugins")
+ (version "0.2.8")
+ (source
+ (origin
+ ;; There are no tests in the PyPI tarball.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/executablebooks/mdit-py-plugins")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0pq7cgzwb1gcbsdpdp51r3l6mnjdxc4hbfmwk6dy30pfa1lj6x1i"))))
+ (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-markdown-it-py" ,python-markdown-it-py)))
+ (native-inputs
+ `(("python-coverage" ,python-coverage)
+ ("python-pytest" ,python-pytest)
+ ("python-pytest-cov" ,python-pytest-cov)
+ ("python-pytest-regressions"
+ ,python-pytest-regressions)))
+ (home-page "https://github.com/executablebooks/mdit-py-plugins")
+ (synopsis "Collection of plugins for markdown-it-py")
+ (description
+ "Collection of plugins for markdown-it-py.")
+ (license license:expat)))
+
(define-public python-honcho
(package
(name "python-honcho")
--
2.31.1
V
V
Vinicius Monego wrote on 5 Jun 2021 03:46
[PATCH 6/6] gnu: Add python-myst-parser.
(address . 48842@debbugs.gnu.org)(name . Vinicius Monego)(address . monego@posteo.net)
20210605014655.18459-6-monego@posteo.net
* gnu/packages/sphinx.scm (python-myst-parser): New variable.
---
gnu/packages/sphinx.scm | 53 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)

Toggle diff (73 lines)
diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm
index 14bc3f5a79..7ec0afae8b 100644
--- a/gnu/packages/sphinx.scm
+++ b/gnu/packages/sphinx.scm
@@ -44,6 +44,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)
@@ -603,6 +604,58 @@ 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.14.0")
+ (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 "0s5lmhj1rb94na646klivzvzzhzpy03m5q9ixif9vg14yin3gm7s"))))
+ (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"
+ ;; Tests fail with AssertionErrors like these:
+ ;; E - <section id="test">
+ ;; E + <div class="section" id="test">
+ "--ignore" "tests/test_sphinx/test_sphinx_builds.py"
+ ;; E - <hlist>
+ ;; E + <hlist ncolumns="2">
+ "-k" "not test_sphinx_directives")))))))
+ (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-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
+ "An extended commonmark compliant parser, with bridges to docutils and
+Sphinx.")
+ (license license:expat)))
+
(define-public python-breathe
(package
(name "python-breathe")
--
2.31.1
X
X
Xinglu Chen wrote on 5 Jun 2021 15:24
Re: [bug#48842] [PATCH 1/6] gnu: Add python-pytest-datadir.
(name . Vinicius Monego)(address . monego@posteo.net)
871r9ga1ga.fsf@yoctocell.xyz
On Sat, Jun 05 2021, Vinicius Monego wrote:

Toggle quote (29 lines)
> +(define-public python-pytest-datadir
> + (package
> + (name "python-pytest-datadir")
> + (version "1.3.1")
> + (source
> + (origin
> + (method url-fetch)
> + (uri (pypi-uri "pytest-datadir" version))
> + (sha256
> + (base32 "066bg6wlzgq2pqnjp73dfrcmk8951xw3aqcxa3p1axgqimrixbyk"))))
> + (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-pathlib2" ,python-pathlib2)))
> + (native-inputs
> + `(("python-pytest" ,python-pytest)
> + ("python-setuptools-scm" ,python-setuptools-scm)))
> + (home-page "https://github.com/gabrielcnr/pytest-datadir")
> + (synopsis "Pytest plugin for test data directories and files")
> + (description
> + "Pytest plugin for test data directories and files.")

The description should consist of one or more full sentences.
-----BEGIN PGP SIGNATURE-----

iQJJBAEBCAAzFiEEAVhh4yyK5+SEykIzrPUJmaL7XHkFAmC7eyUVHHB1YmxpY0B5
b2N0b2NlbGwueHl6AAoJEKz1CZmi+1x5R28QAICYZ/8KzibLzdy+4SijY2fMe1sQ
CScPwzlQ6lLGGgLB0/LuZBXktFDzGicpQTq4k20JFbsPM0YzVTK6OGsIyvlL8pAr
ZgZYXBSAOuuNJ8op2MbMklrn9WKO76Loz3pPqQ1C4Ij3pkt/hnQIO9cPV6xOzomz
bLXNgWebJndOJ2zYxRGUoxgb8sRoTfirSVnl5G7f6o71tAgFBLvCmZZkZ6zqpqVW
Oe3lIJTKxxMrc3oW3Gp+Y23w3ORm15XDa0N0Fsyd3zWpcBIqikNvWuXvc63+Eua3
9mmWhmmmymHK+YWRBZz0Q7BdkQXwNGTSSU524PFruwV3o5nIPNiQ3Uh+o8G7XSOy
9mrmvgd7Enysr1oDpIzS9PbRBxyBlkEqvqYx4PhozjL3JRA6QsvJUadofZ54qjpG
QUQzTE7Dc+/7buYnLpUNRQNOYDJEh579F+OZol4jbpLaZ6cJisv/scBpSoeq3SXe
aKDvtmaUMmzItiOWTFmDbYQU1WsFUeWOur2Tz6OraUEWx7R7ByaFXD1DR2vOO3Rb
nVjdp1AbyVXz5a2ySb/RHd0BxYDLPjAbeDE2CYdRcLsgexC8ifEb1ua7wLMdYdie
Fog66s5KJNxHQFZssfhjSLemgy5IbvgtqxEjLteB1ZOGQxig/GquxV3Cb268cdqA
AZ7yWGFtkEmr0nub
=+wR3
-----END PGP SIGNATURE-----

X
X
Xinglu Chen wrote on 5 Jun 2021 15:27
Re: [bug#48842] [PATCH 3/6] gnu: Add python-linkify-it-py.
(name . Vinicius Monego)(address . monego@posteo.net)
87wnr88mrk.fsf@yoctocell.xyz
On Sat, Jun 05 2021, Vinicius Monego wrote:

Toggle quote (2 lines)
> * gnu/packages/python-xyz.scm (python-linkify-it-py, python-uc-micro-py): New variables.

This should be split into two separate patches. Also, since these two
packages seem closely related, it might be a good idea to put a comment
saying that both should be updated at the same time.
-----BEGIN PGP SIGNATURE-----

iQJJBAEBCAAzFiEEAVhh4yyK5+SEykIzrPUJmaL7XHkFAmC7e78VHHB1YmxpY0B5
b2N0b2NlbGwueHl6AAoJEKz1CZmi+1x5JV0P/A17QCBI/RZCZuE8y/F7I5JDrIfP
BV6VHvG417XmW0WGafDgblvd+xlWD6FEzUPvq3D41etgqWm8FisO+aQfgeIvmwjg
j1nSMf5OleQKFCexyMqCr4lBPRJ+m10vYInOWPXyUfa0jTXyp/JBHH2iDdKbK8SC
8X7t5pCNKhzxgr/OhNlB+P/N2Pkg/J8BGWLoY/UiU4w1ERM4qGjdhDt0DYdSVtRM
6wgbI6jdPtmKAfVV6D7DF1+NdyIpt+U7VKS3C22ax9idwE3SvFlLsh1DLSmUOU9B
FBgGbaZK2lgYyCquMm1zy9lxJh2XEh8l0+1MPEH5GOauS8y40iRbsmyw0zJmivH9
IDWC2uvIiIC0m28UbvDMx+dHULHQLpw6H1tRi3xq5WcAdjoTdzHqmAYKjlSjaqq4
UTYOxFCsfUtEGqt5w7XbLWD+EVlpu13FeEMfwP08x6QzImnf04ZTeq53rSA46deM
BwLFk8yOaTS3j+J6p3wo2KtqLnmzfJoEEKjSpd2u8wOJc3VHh5P6vmDaStVv+LdN
nCnQWA3cRoGTFSllpk/4pCTT3GZmNy2Zsmo41Ym5NcjpmoyryT+aSZNmp1xKDBST
QIaIg9S3kMppOnEKfvdRqwNTADeFISO65oElrl7WcLyj/D8ecCX8fF82HtrEtdBT
vHB1aNVMa4DxMHg3
=YQGo
-----END PGP SIGNATURE-----

X
X
Xinglu Chen wrote on 5 Jun 2021 15:27
Re: [bug#48842] [PATCH 5/6] gnu: Add python-mdit-py-plugins.
(name . Vinicius Monego)(address . monego@posteo.net)
87v96s8mrb.fsf@yoctocell.xyz
On Sat, Jun 05 2021, Vinicius Monego wrote:

Toggle quote (49 lines)
> * gnu/packages/python-xyz.scm (python-mdit-py-plugins): New variable.
> ---
> gnu/packages/python-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++
> 1 file changed, 37 insertions(+)
>
> diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
> index fd7b1dd5f1..d357a92474 100644
> --- a/gnu/packages/python-xyz.scm
> +++ b/gnu/packages/python-xyz.scm
> @@ -7150,6 +7150,43 @@ plugins. Features:
> @end itemize")
> (license license:expat)))
>
> +(define-public python-mdit-py-plugins
> + (package
> + (name "python-mdit-py-plugins")
> + (version "0.2.8")
> + (source
> + (origin
> + ;; There are no tests in the PyPI tarball.
> + (method git-fetch)
> + (uri (git-reference
> + (url "https://github.com/executablebooks/mdit-py-plugins")
> + (commit (string-append "v" version))))
> + (file-name (git-file-name name version))
> + (sha256
> + (base32 "0pq7cgzwb1gcbsdpdp51r3l6mnjdxc4hbfmwk6dy30pfa1lj6x1i"))))
> + (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-markdown-it-py" ,python-markdown-it-py)))
> + (native-inputs
> + `(("python-coverage" ,python-coverage)
> + ("python-pytest" ,python-pytest)
> + ("python-pytest-cov" ,python-pytest-cov)
> + ("python-pytest-regressions"
> + ,python-pytest-regressions)))
> + (home-page "https://github.com/executablebooks/mdit-py-plugins")
> + (synopsis "Collection of plugins for markdown-it-py")
> + (description
> + "Collection of plugins for markdown-it-py.")

Please write a full sentence.
-----BEGIN PGP SIGNATURE-----

iQJJBAEBCAAzFiEEAVhh4yyK5+SEykIzrPUJmaL7XHkFAmC7e8gVHHB1YmxpY0B5
b2N0b2NlbGwueHl6AAoJEKz1CZmi+1x5k+cP/3zkoFsPT2LAA8PvjCbNml/MDi9O
G++VS6LUvQp8GwD97lOinwFsCwgRiXEDdZAylOXlIWDAo0b9CvtgyQKqkrI8Ls1Y
ajOxiyb4DCJ1qXGS8vF3OYAVmowGS1+HDHyvTPZ/7pkAss/Kf5bnKTxGuXCLzC4o
raiKpteJpsSNxql/SZJVcJyiFK42acFJarWvrKUhsc8zFLnNOQkQttWBBpr1j1rP
LFhDiJUkw+kAk8Or8OH7fbp3V+2Edlny8EeRWgtP0GgOBZNpmFbIY3EBNLHrmXkf
JCyNzJjbtynDSr0aj+Q6utrQtp8OIiSnU0IBTEbJROtYoJCc2zgCwwJRYYA6eL6C
DtWQvFKVTABNiprrxaJGM9xsoRFJcXeYxWZHUSIDUvlvwifozwD8RGzKMESa+63A
MNX4U0YOvXbj1aBEUwipoB1O/ZckUfvsJy/yu0ef28CwDjFE5dECbDXlJ1LjTbbJ
uQJ2rU49NMSg8+9GNPD0ogz8cQ66VSiPopUKZxtMpiEDjXzDa13bVj+bbAnVBiiz
P3nGyotxKdl1K2LAV+79jpqikoqtObnVbbZYqBXhZPGgFru0HE6ZWPQmap9VaW6O
iqDQjda7E/45bl1km+bjrwu69js2cnIk/00gmkWUKtfXHdPKZCA3MCOJ42m2tnCc
MfULemqbLRgHffYs
=bt2z
-----END PGP SIGNATURE-----

X
X
Xinglu Chen wrote on 5 Jun 2021 15:37
Re: [bug#48842] [PATCH 6/6] gnu: Add python-myst-parser.
(name . Vinicius Monego)(address . monego@posteo.net)
87r1hg8mar.fsf@yoctocell.xyz
On Sat, Jun 05 2021, Vinicius Monego wrote:

Toggle quote (52 lines)
> * gnu/packages/sphinx.scm (python-myst-parser): New variable.
> ---
> gnu/packages/sphinx.scm | 53 +++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 53 insertions(+)
>
> diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm
> index 14bc3f5a79..7ec0afae8b 100644
> --- a/gnu/packages/sphinx.scm
> +++ b/gnu/packages/sphinx.scm
> @@ -44,6 +44,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)
> @@ -603,6 +604,58 @@ 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.14.0")
> + (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 "0s5lmhj1rb94na646klivzvzzhzpy03m5q9ixif9vg14yin3gm7s"))))
> + (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"
> + ;; Tests fail with AssertionErrors like these:
> + ;; E - <section id="test">
> + ;; E + <div class="section" id="test">
> + "--ignore" "tests/test_sphinx/test_sphinx_builds.py"
> + ;; E - <hlist>
> + ;; E + <hlist ncolumns="2">
> + "-k" "not test_sphinx_directives")))))))

Maybe this is because our ‘python-sphinx’ package is outdated? Just a
guess.

Toggle quote (21 lines)
> + (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-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
> + "An extended commonmark compliant parser, with bridges to docutils and
> +Sphinx.")

Full sentence. :)

Builds fine for me!
-----BEGIN PGP SIGNATURE-----

iQJJBAEBCAAzFiEEAVhh4yyK5+SEykIzrPUJmaL7XHkFAmC7fhwVHHB1YmxpY0B5
b2N0b2NlbGwueHl6AAoJEKz1CZmi+1x5+egP/09kvta4ya/FGyCSV7Cn41gDTdu7
V6M5Op6mDRTWM1/JErcTGdQv1J7ePf1tB76Gn1CzvWzw6CGOWh1aM8pFVbEAIbV3
tssXpgP+3R7JdS8aJLJVDyUaGGHD3QTTrgMkdI++VTfzW1jfSfw/Oag1uDfoOVNo
w8PMZ3PkDwntTW3NkbdOjuktberneYU/AhLOhA22cqHBM46aEzX6Ulx6CdRSn1aC
bul6E5lmtV/MQw7+yQb91b/MVpMvQNBS5kwaMwe+GNNhZKrLSrFOpALl9zKWnDx5
pBkYf3kk0iMvlRVp7qCHBNrwU7BOWUujlbrpyZP/nm9ZiP5PcJv5raqplnuhG8hT
V5KQOK40fMnf9k7Wg+Vc9gmQdzzpkF8WOc51JYzTeJcMZDTe2hrvApDcByZ3xqaG
L+1kfFyvQKFCD/GTa2/eRfp/IRMw8qgCSk/lSnepf1tTgcio8SW1z2dfWcx5aBSG
i0WsRCA1XJI5SjswoV4sisvN13+TIBLsAuUhtVfLyz6e6UlYQWCKbMUDAB2KtsSO
tcd0qN8q80+NcyCvjwxNWFcj30usz7b3jyEVd8hIFdpjVMUGa2pR4Abq62vCJfvu
HtpOSq97VgjUot+rQ4c+sIiO7N1PkZTSx8flQJiy6dvUkPwG+Bk6DTdstn7GvTUG
kdCi40x90v2nEhqi
=qQ+i
-----END PGP SIGNATURE-----

V
V
Vinicius Monego wrote on 7 Jun 2021 13:20
[PATCH v2 2/7] gnu: Add python-pytest-regressions.
(address . 48842@debbugs.gnu.org)(name . Vinicius Monego)(address . monego@posteo.net)
20210607112051.214681-2-monego@posteo.net
* gnu/packages/python-check.scm (python-pytest-regressions): New variable.
---
Rebasing only.

gnu/packages/python-check.scm | 43 +++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)

Toggle diff (66 lines)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 3bdd11d4f5..7c8e6546a2 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -35,9 +35,11 @@
#:use-module (gnu packages django)
#:use-module (gnu packages openstack)
#:use-module (gnu packages python-build)
+ #:use-module (gnu packages python-science)
#:use-module (gnu packages python-web)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages qt)
+ #:use-module (gnu packages sphinx)
#:use-module (gnu packages web)
#:use-module (gnu packages xml)
#:use-module (gnu packages xorg)
@@ -912,6 +914,47 @@ for the @code{pytest} framework.")
data directories and files.")
(license license:expat)))
+(define-public python-pytest-regressions
+ (package
+ (name "python-pytest-regressions")
+ (version "2.2.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pytest-regressions" version))
+ (sha256
+ (base32 "05jpsvv8rj8i4x24fphpnar5dl4s6d6bw6ikjk5d8v96rdviz9qm"))))
+ (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"
+ ;; DeprecrationWarning.
+ "-k" "not test_image_regression")))))))
+ (propagated-inputs
+ `(("python-pytest-datadir" ,python-pytest-datadir)
+ ("python-pyyaml" ,python-pyyaml)))
+ (native-inputs
+ `(("python-matplotlib" ,python-matplotlib)
+ ("python-numpy" ,python-numpy)
+ ("python-pandas" ,python-pandas)
+ ("python-pillow" ,python-pillow)
+ ("python-pytest" ,python-pytest)
+ ("python-restructuredtext-lint"
+ ,python-restructuredtext-lint)
+ ("python-setuptools-scm" ,python-setuptools-scm)))
+ (home-page "https://github.com/ESSS/pytest-regressions")
+ (synopsis "Easy to use fixtures to write regression tests")
+ (description
+ "This Pytest plugin makes it simple to test general data, images, files,
+and numeric tables by saving expected data in a data directory that can be
+used to verify that future runs produce the same data.")
+ (license license:expat)))
+
(define-public python-pytest-benchmark
(package
(name "python-pytest-benchmark")
--
2.31.1
V
V
Vinicius Monego wrote on 7 Jun 2021 13:20
[PATCH v2 1/7] gnu: Add python-pytest-datadir.
(address . 48842@debbugs.gnu.org)(name . Vinicius Monego)(address . monego@posteo.net)
20210607112051.214681-1-monego@posteo.net
* gnu/packages/python-check.scm (python-pytest-datadir): New variable.
---
Changed synopsis and description.

gnu/packages/python-check.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)

Toggle diff (43 lines)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 1206dda5c4..3bdd11d4f5 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -882,6 +882,36 @@ framework.")
for the @code{pytest} framework.")
(license license:expat)))
+(define-public python-pytest-datadir
+ (package
+ (name "python-pytest-datadir")
+ (version "1.3.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pytest-datadir" version))
+ (sha256
+ (base32 "066bg6wlzgq2pqnjp73dfrcmk8951xw3aqcxa3p1axgqimrixbyk"))))
+ (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-pathlib2" ,python-pathlib2)))
+ (native-inputs
+ `(("python-pytest" ,python-pytest)
+ ("python-setuptools-scm" ,python-setuptools-scm)))
+ (home-page "https://github.com/gabrielcnr/pytest-datadir")
+ (synopsis "Pytest plugin to manipulate test data directories and files")
+ (description "This package provides a Pytest plugin for manipulating test
+data directories and files.")
+ (license license:expat)))
+
(define-public python-pytest-benchmark
(package
(name "python-pytest-benchmark")
--
2.31.1
V
V
Vinicius Monego wrote on 7 Jun 2021 13:20
[PATCH v2 3/7] gnu: Add python-uc-micro-py.
(address . 48842@debbugs.gnu.org)(name . Vinicius Monego)(address . monego@posteo.net)
20210607112051.214681-3-monego@posteo.net
* gnu/packages/python-xyz.scm (python-uc-micro-py): New variable.
---
Split this patch into two. Added a comment on the top of the definition. Changed synopsis and description.

gnu/packages/python-xyz.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)

Toggle diff (48 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b63c2852d5..0292fdcdfb 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -7061,6 +7061,41 @@ cluster without needing to write any wrapper code yourself.")
(define-public python2-gridmap
(package-with-python2 python-gridmap))
+;; This package's only purpose is to support python-linkify-it-py. Both
+;; have to be updated at the same time by updating this one.
+(define python-uc-micro-py
+ (package
+ (name "python-uc-micro-py")
+ (version "1.0.1")
+ (source
+ (origin
+ ;; There are no tests in the PyPI tarball.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/tsutsu3/uc.micro-py")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "17f55gi55rg47nm88fn3f8851ph03dgykdp011lxr3j6hk18lyfv"))))
+ (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-coverage" ,python-coverage)
+ ("python-pytest" ,python-pytest)
+ ("python-pytest-cov" ,python-pytest-cov)))
+ (home-page "https://github.com/tsutsu3/uc.micro-py")
+ (synopsis "Data files for @code{python-linkify-it-py}")
+ (description "This is a Python port of @code{uc.micro}. This package's
+content is only for the @code{python-linkify-it-py} project needs.")
+ (license license:expat)))
+
(define-public python-honcho
(package
(name "python-honcho")
--
2.31.1
V
V
Vinicius Monego wrote on 7 Jun 2021 13:20
[PATCH v2 4/7] gnu: Add python-linkify-it-py.
(address . 48842@debbugs.gnu.org)(name . Vinicius Monego)(address . monego@posteo.net)
20210607112051.214681-4-monego@posteo.net
* gnu/packages/python-xyz.scm (python-linkify-it-py): New variable.
---
Changed description.

gnu/packages/python-xyz.scm | 38 +++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)

Toggle diff (51 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 0292fdcdfb..d910d370e9 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -7096,6 +7096,44 @@ cluster without needing to write any wrapper code yourself.")
content is only for the @code{linkify-it-py} project needs.")
(license license:expat)))
+(define-public python-linkify-it-py
+ (package
+ (name "python-linkify-it-py")
+ (version (package-version python-uc-micro-py))
+ (source
+ (origin
+ ;; There are no tests in the PyPI tarball.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/tsutsu3/linkify-it-py")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "00r4sxgvlxkm5k2jwvrsxgzcccfkfzd0knypbcig5almisg7bpl1"))))
+ (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-uc-micro-py" ,python-uc-micro-py)))
+ (native-inputs
+ `(("python-black" ,python-black)
+ ("python-coverage" ,python-coverage)
+ ("python-flake8" ,python-flake8)
+ ("python-isort" ,python-isort)
+ ("python-pytest" ,python-pytest)
+ ("python-pytest-cov" ,python-pytest-cov)))
+ (home-page "https://github.com/tsutsu3/linkify-it-py")
+ (synopsis "Links recognition library with full unicode support")
+ (description "This is a Python port of @code{linkify-it}, a JavaScript
+links recognition library with full unicode support.")
+ (license license:expat)))
+
(define-public python-honcho
(package
(name "python-honcho")
--
2.31.1
V
V
Vinicius Monego wrote on 7 Jun 2021 13:20
[PATCH v2 5/7] gnu: Add python-markdown-it-py.
(address . 48842@debbugs.gnu.org)(name . Vinicius Monego)(address . monego@posteo.net)
20210607112051.214681-5-monego@posteo.net
* gnu/packages/python-xyz.scm (python-markdown-it-py): New variable.
---
Changed synopsis and description.

gnu/packages/python-xyz.scm | 50 +++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)

Toggle diff (63 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index d910d370e9..170eb15759 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -7134,6 +7134,56 @@ content is only for the @code{linkify-it-py} project needs.")
links recognition library with full unicode support.")
(license license:expat)))
+(define-public python-markdown-it-py
+ (package
+ (name "python-markdown-it-py")
+ (version "1.1.0")
+ (source
+ (origin
+ ;; There are no tests in the PyPI tarball.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/executablebooks/markdown-it-py")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0h7rn3rcqfwmnqs97qczwkw9w5g4df8bgn6sw7k149svfqgrkf56"))))
+ (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-attrs" ,python-attrs)
+ ("python-typing-extensions"
+ ,python-typing-extensions)))
+ (native-inputs
+ `(("python-coverage" ,python-coverage)
+ ("python-linkify-it-py" ,python-linkify-it-py)
+ ("python-psutil" ,python-psutil)
+ ("python-pytest" ,python-pytest)
+ ("python-pytest-benchmark"
+ ,python-pytest-benchmark)
+ ("python-pytest-cov" ,python-pytest-cov)
+ ("python-pytest-regressions"
+ ,python-pytest-regressions)))
+ (home-page "https://github.com/executablebooks/markdown-it-py")
+ (synopsis "Markdown parser with CommonMark support")
+ (description "This is a Python port of @code{markdown-it} (a Markdown
+parser in JavaScript), and some of its associated plugins. Features:
+
+@itemize
+@item Follows the CommonMark spec for baseline parsing.
+@item Configurable syntax: Add new rules and even replace existing ones.
+@item Pluggable: Adds syntax extensions to extend the parser.
+@item Safe by default.
+@end itemize")
+ (license license:expat)))
+
(define-public python-honcho
(package
(name "python-honcho")
--
2.31.1
V
V
Vinicius Monego wrote on 7 Jun 2021 13:20
[PATCH v2 6/7] gnu: Add python-mdit-py-plugins.
(address . 48842@debbugs.gnu.org)(name . Vinicius Monego)(address . monego@posteo.net)
20210607112051.214681-6-monego@posteo.net
* gnu/packages/python-xyz.scm (python-mdit-py-plugins): New variable.
---
Changed synopsis and description.

gnu/packages/python-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)

Toggle diff (50 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 170eb15759..b01a7f5bb8 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -7184,6 +7184,43 @@ parser in JavaScript), and some of its associated plugins. Features:
@end itemize")
(license license:expat)))
+(define-public python-mdit-py-plugins
+ (package
+ (name "python-mdit-py-plugins")
+ (version "0.2.8")
+ (source
+ (origin
+ ;; There are no tests in the PyPI tarball.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/executablebooks/mdit-py-plugins")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0pq7cgzwb1gcbsdpdp51r3l6mnjdxc4hbfmwk6dy30pfa1lj6x1i"))))
+ (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-markdown-it-py" ,python-markdown-it-py)))
+ (native-inputs
+ `(("python-coverage" ,python-coverage)
+ ("python-pytest" ,python-pytest)
+ ("python-pytest-cov" ,python-pytest-cov)
+ ("python-pytest-regressions"
+ ,python-pytest-regressions)))
+ (home-page "https://github.com/executablebooks/mdit-py-plugins")
+ (synopsis "Collection of plugins for @code{python-markdown-it-py}")
+ (description "This package provides a collection of plugins for
+@code{python-markdown-it-py}.")
+ (license license:expat)))
+
(define-public python-honcho
(package
(name "python-honcho")
--
2.31.1
V
V
Vinicius Monego wrote on 7 Jun 2021 13:20
[PATCH v2 7/7] gnu: Add python-myst-parser.
(address . 48842@debbugs.gnu.org)(name . Vinicius Monego)(address . monego@posteo.net)
20210607112051.214681-7-monego@posteo.net
* gnu/packages/sphinx.scm (python-myst-parser): New variable.
---
Changed synopsis and description, and clarified the comment about why tests are skipped.

gnu/packages/sphinx.scm | 55 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)

Toggle diff (75 lines)
diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm
index 428a701d87..eefba27f00 100644
--- a/gnu/packages/sphinx.scm
+++ b/gnu/packages/sphinx.scm
@@ -45,6 +45,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)
@@ -616,6 +617,60 @@ 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.14.0")
+ (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 "0s5lmhj1rb94na646klivzvzzhzpy03m5q9ixif9vg14yin3gm7s"))))
+ (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"
+ ;; Tests in this file fail with AssertionErrors related
+ ;; to adding divs to the HTML tags:
+ ;; E - <section id="test">
+ ;; E + <div class="section" id="test">
+ "--ignore" "tests/test_sphinx/test_sphinx_builds.py"
+ ;; Another AssertionError:
+ ;; E - <hlist>
+ ;; E + <hlist ncolumns="2">
+ "-k" "not test_sphinx_directives")))))))
+ (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-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.31.1
V
V
Vinicius Monego wrote on 15 Sep 2021 18:41
[PATCH v3 2/5] gnu: Add python-linkify-it-py.
(address . 48842@debbugs.gnu.org)(name . Vinicius Monego)(address . monego@posteo.net)
20210915164130.11236-2-monego@posteo.net
* gnu/packages/python-xyz.scm (python-linkify-it-py): New variable.
---
Rebasing.

gnu/packages/python-xyz.scm | 38 +++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)

Toggle diff (51 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b742050b06..8e50b1c4ff 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -7292,6 +7292,44 @@ cluster without needing to write any wrapper code yourself.")
content is only for the @code{linkify-it-py} project needs.")
(license license:expat)))
+(define-public python-linkify-it-py
+ (package
+ (name "python-linkify-it-py")
+ (version (package-version python-uc-micro-py))
+ (source
+ (origin
+ ;; There are no tests in the PyPI tarball.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/tsutsu3/linkify-it-py")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "00r4sxgvlxkm5k2jwvrsxgzcccfkfzd0knypbcig5almisg7bpl1"))))
+ (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-uc-micro-py" ,python-uc-micro-py)))
+ (native-inputs
+ `(("python-black" ,python-black)
+ ("python-coverage" ,python-coverage)
+ ("python-flake8" ,python-flake8)
+ ("python-isort" ,python-isort)
+ ("python-pytest" ,python-pytest)
+ ("python-pytest-cov" ,python-pytest-cov)))
+ (home-page "https://github.com/tsutsu3/linkify-it-py")
+ (synopsis "Links recognition library with full unicode support")
+ (description "This is a Python port of @code{linkify-it}, a JavaScript
+links recognition library with full unicode support.")
+ (license license:expat)))
+
(define-public python-honcho
(package
(name "python-honcho")
--
2.30.2
V
V
Vinicius Monego wrote on 15 Sep 2021 18:41
[PATCH v3 1/5] gnu: Add python-uc-micro-py.
(address . 48842@debbugs.gnu.org)(name . Vinicius Monego)(address . monego@posteo.net)
20210915164130.11236-1-monego@posteo.net
* gnu/packages/python-xyz.scm (python-uc-micro-py): New variable.
---
Rebasing. Starting from this patch because the pytest plugins were pushed to the repository.

gnu/packages/python-xyz.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)

Toggle diff (48 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e98eec19bc..b742050b06 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -7257,6 +7257,41 @@ cluster directly from Python. You can directly map Python functions onto the
cluster without needing to write any wrapper code yourself.")
(license license:gpl3+)))
+;; This package's only purpose is to support python-linkify-it-py. Both
+;; have to be updated at the same time by updating this one.
+(define python-uc-micro-py
+ (package
+ (name "python-uc-micro-py")
+ (version "1.0.1")
+ (source
+ (origin
+ ;; There are no tests in the PyPI tarball.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/tsutsu3/uc.micro-py")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "17f55gi55rg47nm88fn3f8851ph03dgykdp011lxr3j6hk18lyfv"))))
+ (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-coverage" ,python-coverage)
+ ("python-pytest" ,python-pytest)
+ ("python-pytest-cov" ,python-pytest-cov)))
+ (home-page "https://github.com/tsutsu3/uc.micro-py")
+ (synopsis "Micro subset of unicode data files for linkify-it-py projects")
+ (description "This is a Python port of @code{uc.micro}. This package's
+content is only for the @code{linkify-it-py} project needs.")
+ (license license:expat)))
+
(define-public python-honcho
(package
(name "python-honcho")
--
2.30.2
V
V
Vinicius Monego wrote on 15 Sep 2021 18:41
[PATCH v3 3/5] gnu: Add python-markdown-it-py.
(address . 48842@debbugs.gnu.org)(name . Vinicius Monego)(address . monego@posteo.net)
20210915164130.11236-3-monego@posteo.net
* gnu/packages/python-xyz.scm (python-markdown-it-py): New variable.
---
Rebasing.

gnu/packages/python-xyz.scm | 50 +++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)

Toggle diff (63 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 8e50b1c4ff..11e766ab35 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -7330,6 +7330,56 @@ content is only for the @code{linkify-it-py} project needs.")
links recognition library with full unicode support.")
(license license:expat)))
+(define-public python-markdown-it-py
+ (package
+ (name "python-markdown-it-py")
+ (version "1.1.0")
+ (source
+ (origin
+ ;; There are no tests in the PyPI tarball.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/executablebooks/markdown-it-py")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0h7rn3rcqfwmnqs97qczwkw9w5g4df8bgn6sw7k149svfqgrkf56"))))
+ (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-attrs" ,python-attrs)
+ ("python-typing-extensions"
+ ,python-typing-extensions)))
+ (native-inputs
+ `(("python-coverage" ,python-coverage)
+ ("python-linkify-it-py" ,python-linkify-it-py)
+ ("python-psutil" ,python-psutil)
+ ("python-pytest" ,python-pytest)
+ ("python-pytest-benchmark"
+ ,python-pytest-benchmark)
+ ("python-pytest-cov" ,python-pytest-cov)
+ ("python-pytest-regressions"
+ ,python-pytest-regressions)))
+ (home-page "https://github.com/executablebooks/markdown-it-py")
+ (synopsis "Markdown parser with CommonMark support")
+ (description "This is a Python port of @code{markdown-it} (a Markdown
+parser in JavaScript), and some of its associated plugins. Features:
+
+@itemize
+@item Follows the CommonMark spec for baseline parsing.
+@item Configurable syntax: Add new rules and even replace existing ones.
+@item Pluggable: Adds syntax extensions to extend the parser.
+@item Safe by default.
+@end itemize")
+ (license license:expat)))
+
(define-public python-honcho
(package
(name "python-honcho")
--
2.30.2
V
V
Vinicius Monego wrote on 15 Sep 2021 18:41
[PATCH v3 4/5] gnu: Add python-mdit-py-plugins.
(address . 48842@debbugs.gnu.org)(name . Vinicius Monego)(address . monego@posteo.net)
20210915164130.11236-4-monego@posteo.net
* gnu/packages/python-xyz.scm (python-mdit-py-plugins): New variable.
---
Rebasing.

gnu/packages/python-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)

Toggle diff (50 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 11e766ab35..fa00277500 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -7380,6 +7380,43 @@ parser in JavaScript), and some of its associated plugins. Features:
@end itemize")
(license license:expat)))
+(define-public python-mdit-py-plugins
+ (package
+ (name "python-mdit-py-plugins")
+ (version "0.2.8")
+ (source
+ (origin
+ ;; There are no tests in the PyPI tarball.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/executablebooks/mdit-py-plugins")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0pq7cgzwb1gcbsdpdp51r3l6mnjdxc4hbfmwk6dy30pfa1lj6x1i"))))
+ (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-markdown-it-py" ,python-markdown-it-py)))
+ (native-inputs
+ `(("python-coverage" ,python-coverage)
+ ("python-pytest" ,python-pytest)
+ ("python-pytest-cov" ,python-pytest-cov)
+ ("python-pytest-regressions"
+ ,python-pytest-regressions)))
+ (home-page "https://github.com/executablebooks/mdit-py-plugins")
+ (synopsis "Collection of plugins for @code{python-markdown-it-py}")
+ (description "This package provides a collection of plugins for
+@code{python-markdown-it-py}.")
+ (license license:expat)))
+
(define-public python-honcho
(package
(name "python-honcho")
--
2.30.2
V
V
Vinicius Monego wrote on 15 Sep 2021 18:41
[PATCH v3 5/5] gnu: Add python-myst-parser.
(address . 48842@debbugs.gnu.org)(name . Vinicius Monego)(address . monego@posteo.net)
20210915164130.11236-5-monego@posteo.net
* 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(+)

Toggle diff (67 lines)
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
V
V
Vinicius Monego wrote on 12 Nov 2021 04:42
Re: [bug#48842] [PATCH 6/6] gnu: Add python-myst-parser.
713d52030894e7ce699793184b2039315f8b20d4.camel@posteo.net
Hi,

Em sáb, 2021-06-05 às 15:37 +0200, Xinglu Chen escreveu:
Toggle quote (65 lines)
> On Sat, Jun 05 2021, Vinicius Monego wrote:
>
> > * gnu/packages/sphinx.scm (python-myst-parser): New variable.
> > ---
> >  gnu/packages/sphinx.scm | 53
> > +++++++++++++++++++++++++++++++++++++++++
> >  1 file changed, 53 insertions(+)
> >
> > diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm
> > index 14bc3f5a79..7ec0afae8b 100644
> > --- a/gnu/packages/sphinx.scm
> > +++ b/gnu/packages/sphinx.scm
> > @@ -44,6 +44,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)
> > @@ -603,6 +604,58 @@ 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.14.0")
> > +    (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
> > "0s5lmhj1rb94na646klivzvzzhzpy03m5q9ixif9vg14yin3gm7s"))))
> > +    (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"
> > +                       ;; Tests fail with AssertionErrors like
> > these:
> > +                       ;; E -   <section id="test">
> > +                       ;; E +   <div class="section" id="test">
> > +                       "--ignore"
> > "tests/test_sphinx/test_sphinx_builds.py"
> > +                       ;; E -     <hlist>
> > +                       ;; E +     <hlist ncolumns="2">
> > +                       "-k" "not test_sphinx_directives")))))))
>
> Maybe this is because our ‘python-sphinx’ package is outdated?  Just
> a
> guess.
>

A very late thanks for the review.

After updating to version 0.15.2 in v3 the tests are running fine, so I
guess the problem was in upstream.

Toggle quote (25 lines)
> > +    (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-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
> > +     "An extended commonmark compliant parser, with bridges to
> > docutils and
> > +Sphinx.")
>
> Full sentence.  :)
>

I added full sentences in the series and removed the first 2 patches in
v3 because these were merged in another commit. Thanks again!

Toggle quote (1 lines)
> Builds fine for me!
V
Closed
?