* [bug#48842] [PATCH 0/6] gnu: Add python-myst-parser.
@ 2021-06-05 1:45 Vinicius Monego
2021-06-05 1:46 ` [bug#48842] [PATCH 1/6] gnu: Add python-pytest-datadir Vinicius Monego
` (3 more replies)
0 siblings, 4 replies; 25+ messages in thread
From: Vinicius Monego @ 2021-06-05 1:45 UTC (permalink / raw)
To: 48842; +Cc: Vinicius Monego
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
^ permalink raw reply [flat|nested] 25+ messages in thread
* [bug#48842] [PATCH 1/6] gnu: Add python-pytest-datadir.
2021-06-05 1:45 [bug#48842] [PATCH 0/6] gnu: Add python-myst-parser Vinicius Monego
@ 2021-06-05 1:46 ` Vinicius Monego
2021-06-05 1:46 ` [bug#48842] [PATCH 2/6] gnu: Add python-pytest-regressions Vinicius Monego
` (5 more replies)
2021-06-07 11:20 ` [bug#48842] [PATCH v2 1/7] " Vinicius Monego
` (2 subsequent siblings)
3 siblings, 6 replies; 25+ messages in thread
From: Vinicius Monego @ 2021-06-05 1:46 UTC (permalink / raw)
To: 48842; +Cc: Vinicius Monego
* gnu/packages/python-check.scm (python-pytest-datadir): New variable.
---
gnu/packages/python-check.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
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
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [bug#48842] [PATCH 2/6] gnu: Add python-pytest-regressions.
2021-06-05 1:46 ` [bug#48842] [PATCH 1/6] gnu: Add python-pytest-datadir Vinicius Monego
@ 2021-06-05 1:46 ` Vinicius Monego
2021-06-05 1:46 ` [bug#48842] [PATCH 3/6] gnu: Add python-linkify-it-py Vinicius Monego
` (4 subsequent siblings)
5 siblings, 0 replies; 25+ messages in thread
From: Vinicius Monego @ 2021-06-05 1:46 UTC (permalink / raw)
To: 48842; +Cc: Vinicius Monego
* gnu/packages/python-check.scm (python-pytest-regressions): New variable.
---
gnu/packages/python-check.scm | 43 +++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
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
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [bug#48842] [PATCH 3/6] gnu: Add python-linkify-it-py.
2021-06-05 1:46 ` [bug#48842] [PATCH 1/6] gnu: Add python-pytest-datadir Vinicius Monego
2021-06-05 1:46 ` [bug#48842] [PATCH 2/6] gnu: Add python-pytest-regressions Vinicius Monego
@ 2021-06-05 1:46 ` Vinicius Monego
2021-06-05 13:27 ` Xinglu Chen
2021-06-05 1:46 ` [bug#48842] [PATCH 4/6] gnu: Add python-markdown-it-py Vinicius Monego
` (3 subsequent siblings)
5 siblings, 1 reply; 25+ messages in thread
From: Vinicius Monego @ 2021-06-05 1:46 UTC (permalink / raw)
To: 48842; +Cc: Vinicius Monego
* 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(+)
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
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [bug#48842] [PATCH 4/6] gnu: Add python-markdown-it-py.
2021-06-05 1:46 ` [bug#48842] [PATCH 1/6] gnu: Add python-pytest-datadir Vinicius Monego
2021-06-05 1:46 ` [bug#48842] [PATCH 2/6] gnu: Add python-pytest-regressions Vinicius Monego
2021-06-05 1:46 ` [bug#48842] [PATCH 3/6] gnu: Add python-linkify-it-py Vinicius Monego
@ 2021-06-05 1:46 ` Vinicius Monego
2021-06-05 1:46 ` [bug#48842] [PATCH 5/6] gnu: Add python-mdit-py-plugins Vinicius Monego
` (2 subsequent siblings)
5 siblings, 0 replies; 25+ messages in thread
From: Vinicius Monego @ 2021-06-05 1:46 UTC (permalink / raw)
To: 48842; +Cc: Vinicius Monego
* gnu/packages/python-xyz.scm (python-markdown-it-py): New variable.
---
gnu/packages/python-xyz.scm | 51 +++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
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
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [bug#48842] [PATCH 5/6] gnu: Add python-mdit-py-plugins.
2021-06-05 1:46 ` [bug#48842] [PATCH 1/6] gnu: Add python-pytest-datadir Vinicius Monego
` (2 preceding siblings ...)
2021-06-05 1:46 ` [bug#48842] [PATCH 4/6] gnu: Add python-markdown-it-py Vinicius Monego
@ 2021-06-05 1:46 ` Vinicius Monego
2021-06-05 13:27 ` Xinglu Chen
2021-06-05 1:46 ` [bug#48842] [PATCH 6/6] gnu: Add python-myst-parser Vinicius Monego
2021-06-05 13:24 ` [bug#48842] [PATCH 1/6] gnu: Add python-pytest-datadir Xinglu Chen
5 siblings, 1 reply; 25+ messages in thread
From: Vinicius Monego @ 2021-06-05 1:46 UTC (permalink / raw)
To: 48842; +Cc: Vinicius Monego
* 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.")
+ (license license:expat)))
+
(define-public python-honcho
(package
(name "python-honcho")
--
2.31.1
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [bug#48842] [PATCH 6/6] gnu: Add python-myst-parser.
2021-06-05 1:46 ` [bug#48842] [PATCH 1/6] gnu: Add python-pytest-datadir Vinicius Monego
` (3 preceding siblings ...)
2021-06-05 1:46 ` [bug#48842] [PATCH 5/6] gnu: Add python-mdit-py-plugins Vinicius Monego
@ 2021-06-05 1:46 ` Vinicius Monego
2021-06-05 13:37 ` Xinglu Chen
2021-06-05 13:24 ` [bug#48842] [PATCH 1/6] gnu: Add python-pytest-datadir Xinglu Chen
5 siblings, 1 reply; 25+ messages in thread
From: Vinicius Monego @ 2021-06-05 1:46 UTC (permalink / raw)
To: 48842; +Cc: Vinicius Monego
* 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")))))))
+ (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
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [bug#48842] [PATCH 1/6] gnu: Add python-pytest-datadir.
2021-06-05 1:46 ` [bug#48842] [PATCH 1/6] gnu: Add python-pytest-datadir Vinicius Monego
` (4 preceding siblings ...)
2021-06-05 1:46 ` [bug#48842] [PATCH 6/6] gnu: Add python-myst-parser Vinicius Monego
@ 2021-06-05 13:24 ` Xinglu Chen
5 siblings, 0 replies; 25+ messages in thread
From: Xinglu Chen @ 2021-06-05 13:24 UTC (permalink / raw)
To: Vinicius Monego, 48842; +Cc: Vinicius Monego
[-- Attachment #1: Type: text/plain, Size: 1219 bytes --]
On Sat, Jun 05 2021, Vinicius Monego wrote:
> +(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.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]
^ permalink raw reply [flat|nested] 25+ messages in thread
* [bug#48842] [PATCH 3/6] gnu: Add python-linkify-it-py.
2021-06-05 1:46 ` [bug#48842] [PATCH 3/6] gnu: Add python-linkify-it-py Vinicius Monego
@ 2021-06-05 13:27 ` Xinglu Chen
0 siblings, 0 replies; 25+ messages in thread
From: Xinglu Chen @ 2021-06-05 13:27 UTC (permalink / raw)
To: Vinicius Monego, 48842; +Cc: Vinicius Monego
[-- Attachment #1: Type: text/plain, Size: 334 bytes --]
On Sat, Jun 05 2021, Vinicius Monego wrote:
> * 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.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]
^ permalink raw reply [flat|nested] 25+ messages in thread
* [bug#48842] [PATCH 5/6] gnu: Add python-mdit-py-plugins.
2021-06-05 1:46 ` [bug#48842] [PATCH 5/6] gnu: Add python-mdit-py-plugins Vinicius Monego
@ 2021-06-05 13:27 ` Xinglu Chen
0 siblings, 0 replies; 25+ messages in thread
From: Xinglu Chen @ 2021-06-05 13:27 UTC (permalink / raw)
To: Vinicius Monego, 48842; +Cc: Vinicius Monego
[-- Attachment #1: Type: text/plain, Size: 2044 bytes --]
On Sat, Jun 05 2021, Vinicius Monego wrote:
> * 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.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]
^ permalink raw reply [flat|nested] 25+ messages in thread
* [bug#48842] [PATCH 6/6] gnu: Add python-myst-parser.
2021-06-05 1:46 ` [bug#48842] [PATCH 6/6] gnu: Add python-myst-parser Vinicius Monego
@ 2021-06-05 13:37 ` Xinglu Chen
2021-11-12 3:42 ` Vinicius Monego
0 siblings, 1 reply; 25+ messages in thread
From: Xinglu Chen @ 2021-06-05 13:37 UTC (permalink / raw)
To: Vinicius Monego, 48842; +Cc: Vinicius Monego
[-- Attachment #1: Type: text/plain, Size: 3289 bytes --]
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.
> + (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!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]
^ permalink raw reply [flat|nested] 25+ messages in thread
* [bug#48842] [PATCH v2 1/7] gnu: Add python-pytest-datadir.
2021-06-05 1:45 [bug#48842] [PATCH 0/6] gnu: Add python-myst-parser Vinicius Monego
2021-06-05 1:46 ` [bug#48842] [PATCH 1/6] gnu: Add python-pytest-datadir Vinicius Monego
@ 2021-06-07 11:20 ` Vinicius Monego
2021-06-07 11:20 ` [bug#48842] [PATCH v2 2/7] gnu: Add python-pytest-regressions Vinicius Monego
` (5 more replies)
2021-09-15 16:41 ` [bug#48842] [PATCH v3 1/5] gnu: Add python-uc-micro-py Vinicius Monego
2022-11-06 10:46 ` bug#48842: [PATCH 0/6] " Vinicius Monego
3 siblings, 6 replies; 25+ messages in thread
From: Vinicius Monego @ 2021-06-07 11:20 UTC (permalink / raw)
To: 48842; +Cc: Vinicius Monego
* 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(+)
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
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [bug#48842] [PATCH v2 2/7] gnu: Add python-pytest-regressions.
2021-06-07 11:20 ` [bug#48842] [PATCH v2 1/7] " Vinicius Monego
@ 2021-06-07 11:20 ` Vinicius Monego
2021-06-07 11:20 ` [bug#48842] [PATCH v2 3/7] gnu: Add python-uc-micro-py Vinicius Monego
` (4 subsequent siblings)
5 siblings, 0 replies; 25+ messages in thread
From: Vinicius Monego @ 2021-06-07 11:20 UTC (permalink / raw)
To: 48842; +Cc: Vinicius Monego
* gnu/packages/python-check.scm (python-pytest-regressions): New variable.
---
Rebasing only.
gnu/packages/python-check.scm | 43 +++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
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
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [bug#48842] [PATCH v2 3/7] gnu: Add python-uc-micro-py.
2021-06-07 11:20 ` [bug#48842] [PATCH v2 1/7] " Vinicius Monego
2021-06-07 11:20 ` [bug#48842] [PATCH v2 2/7] gnu: Add python-pytest-regressions Vinicius Monego
@ 2021-06-07 11:20 ` Vinicius Monego
2021-06-07 11:20 ` [bug#48842] [PATCH v2 4/7] gnu: Add python-linkify-it-py Vinicius Monego
` (3 subsequent siblings)
5 siblings, 0 replies; 25+ messages in thread
From: Vinicius Monego @ 2021-06-07 11:20 UTC (permalink / raw)
To: 48842; +Cc: Vinicius Monego
* 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(+)
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
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [bug#48842] [PATCH v2 4/7] gnu: Add python-linkify-it-py.
2021-06-07 11:20 ` [bug#48842] [PATCH v2 1/7] " Vinicius Monego
2021-06-07 11:20 ` [bug#48842] [PATCH v2 2/7] gnu: Add python-pytest-regressions Vinicius Monego
2021-06-07 11:20 ` [bug#48842] [PATCH v2 3/7] gnu: Add python-uc-micro-py Vinicius Monego
@ 2021-06-07 11:20 ` Vinicius Monego
2021-06-07 11:20 ` [bug#48842] [PATCH v2 5/7] gnu: Add python-markdown-it-py Vinicius Monego
` (2 subsequent siblings)
5 siblings, 0 replies; 25+ messages in thread
From: Vinicius Monego @ 2021-06-07 11:20 UTC (permalink / raw)
To: 48842; +Cc: Vinicius Monego
* gnu/packages/python-xyz.scm (python-linkify-it-py): New variable.
---
Changed description.
gnu/packages/python-xyz.scm | 38 +++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
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
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [bug#48842] [PATCH v2 5/7] gnu: Add python-markdown-it-py.
2021-06-07 11:20 ` [bug#48842] [PATCH v2 1/7] " Vinicius Monego
` (2 preceding siblings ...)
2021-06-07 11:20 ` [bug#48842] [PATCH v2 4/7] gnu: Add python-linkify-it-py Vinicius Monego
@ 2021-06-07 11:20 ` Vinicius Monego
2021-06-07 11:20 ` [bug#48842] [PATCH v2 6/7] gnu: Add python-mdit-py-plugins Vinicius Monego
2021-06-07 11:20 ` [bug#48842] [PATCH v2 7/7] gnu: Add python-myst-parser Vinicius Monego
5 siblings, 0 replies; 25+ messages in thread
From: Vinicius Monego @ 2021-06-07 11:20 UTC (permalink / raw)
To: 48842; +Cc: Vinicius Monego
* 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(+)
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
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [bug#48842] [PATCH v2 6/7] gnu: Add python-mdit-py-plugins.
2021-06-07 11:20 ` [bug#48842] [PATCH v2 1/7] " Vinicius Monego
` (3 preceding siblings ...)
2021-06-07 11:20 ` [bug#48842] [PATCH v2 5/7] gnu: Add python-markdown-it-py Vinicius Monego
@ 2021-06-07 11:20 ` Vinicius Monego
2021-06-07 11:20 ` [bug#48842] [PATCH v2 7/7] gnu: Add python-myst-parser Vinicius Monego
5 siblings, 0 replies; 25+ messages in thread
From: Vinicius Monego @ 2021-06-07 11:20 UTC (permalink / raw)
To: 48842; +Cc: Vinicius Monego
* 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(+)
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
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [bug#48842] [PATCH v2 7/7] gnu: Add python-myst-parser.
2021-06-07 11:20 ` [bug#48842] [PATCH v2 1/7] " Vinicius Monego
` (4 preceding siblings ...)
2021-06-07 11:20 ` [bug#48842] [PATCH v2 6/7] gnu: Add python-mdit-py-plugins Vinicius Monego
@ 2021-06-07 11:20 ` Vinicius Monego
5 siblings, 0 replies; 25+ messages in thread
From: Vinicius Monego @ 2021-06-07 11:20 UTC (permalink / raw)
To: 48842; +Cc: Vinicius Monego
* 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(+)
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
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [bug#48842] [PATCH v3 1/5] gnu: Add python-uc-micro-py.
2021-06-05 1:45 [bug#48842] [PATCH 0/6] gnu: Add python-myst-parser Vinicius Monego
2021-06-05 1:46 ` [bug#48842] [PATCH 1/6] gnu: Add python-pytest-datadir Vinicius Monego
2021-06-07 11:20 ` [bug#48842] [PATCH v2 1/7] " Vinicius Monego
@ 2021-09-15 16:41 ` Vinicius Monego
2021-09-15 16:41 ` [bug#48842] [PATCH v3 2/5] gnu: Add python-linkify-it-py Vinicius Monego
` (3 more replies)
2022-11-06 10:46 ` bug#48842: [PATCH 0/6] " Vinicius Monego
3 siblings, 4 replies; 25+ messages in thread
From: Vinicius Monego @ 2021-09-15 16:41 UTC (permalink / raw)
To: 48842; +Cc: Vinicius Monego
* 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(+)
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
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [bug#48842] [PATCH v3 2/5] gnu: Add python-linkify-it-py.
2021-09-15 16:41 ` [bug#48842] [PATCH v3 1/5] gnu: Add python-uc-micro-py Vinicius Monego
@ 2021-09-15 16:41 ` Vinicius Monego
2021-09-15 16:41 ` [bug#48842] [PATCH v3 3/5] gnu: Add python-markdown-it-py Vinicius Monego
` (2 subsequent siblings)
3 siblings, 0 replies; 25+ messages in thread
From: Vinicius Monego @ 2021-09-15 16:41 UTC (permalink / raw)
To: 48842; +Cc: Vinicius Monego
* gnu/packages/python-xyz.scm (python-linkify-it-py): New variable.
---
Rebasing.
gnu/packages/python-xyz.scm | 38 +++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
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
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [bug#48842] [PATCH v3 3/5] gnu: Add python-markdown-it-py.
2021-09-15 16:41 ` [bug#48842] [PATCH v3 1/5] gnu: Add python-uc-micro-py Vinicius Monego
2021-09-15 16:41 ` [bug#48842] [PATCH v3 2/5] gnu: Add python-linkify-it-py Vinicius Monego
@ 2021-09-15 16:41 ` Vinicius Monego
2021-09-15 16:41 ` [bug#48842] [PATCH v3 4/5] gnu: Add python-mdit-py-plugins Vinicius Monego
2021-09-15 16:41 ` [bug#48842] [PATCH v3 5/5] gnu: Add python-myst-parser Vinicius Monego
3 siblings, 0 replies; 25+ messages in thread
From: Vinicius Monego @ 2021-09-15 16:41 UTC (permalink / raw)
To: 48842; +Cc: Vinicius Monego
* gnu/packages/python-xyz.scm (python-markdown-it-py): New variable.
---
Rebasing.
gnu/packages/python-xyz.scm | 50 +++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
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
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [bug#48842] [PATCH v3 4/5] gnu: Add python-mdit-py-plugins.
2021-09-15 16:41 ` [bug#48842] [PATCH v3 1/5] gnu: Add python-uc-micro-py Vinicius Monego
2021-09-15 16:41 ` [bug#48842] [PATCH v3 2/5] gnu: Add python-linkify-it-py Vinicius Monego
2021-09-15 16:41 ` [bug#48842] [PATCH v3 3/5] gnu: Add python-markdown-it-py Vinicius Monego
@ 2021-09-15 16:41 ` Vinicius Monego
2021-09-15 16:41 ` [bug#48842] [PATCH v3 5/5] gnu: Add python-myst-parser Vinicius Monego
3 siblings, 0 replies; 25+ messages in thread
From: Vinicius Monego @ 2021-09-15 16:41 UTC (permalink / raw)
To: 48842; +Cc: Vinicius Monego
* gnu/packages/python-xyz.scm (python-mdit-py-plugins): New variable.
---
Rebasing.
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 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
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [bug#48842] [PATCH v3 5/5] gnu: Add python-myst-parser.
2021-09-15 16:41 ` [bug#48842] [PATCH v3 1/5] gnu: Add python-uc-micro-py Vinicius Monego
` (2 preceding siblings ...)
2021-09-15 16:41 ` [bug#48842] [PATCH v3 4/5] gnu: Add python-mdit-py-plugins Vinicius Monego
@ 2021-09-15 16:41 ` Vinicius Monego
3 siblings, 0 replies; 25+ messages in thread
From: Vinicius Monego @ 2021-09-15 16:41 UTC (permalink / raw)
To: 48842; +Cc: Vinicius Monego
* 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
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [bug#48842] [PATCH 6/6] gnu: Add python-myst-parser.
2021-06-05 13:37 ` Xinglu Chen
@ 2021-11-12 3:42 ` Vinicius Monego
0 siblings, 0 replies; 25+ messages in thread
From: Vinicius Monego @ 2021-11-12 3:42 UTC (permalink / raw)
To: Xinglu Chen, 48842
Hi,
Em sáb, 2021-06-05 às 15:37 +0200, Xinglu Chen escreveu:
> 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.
> > + (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!
> Builds fine for me!
^ permalink raw reply [flat|nested] 25+ messages in thread
* bug#48842: [PATCH 0/6] gnu: Add python-myst-parser.
2021-06-05 1:45 [bug#48842] [PATCH 0/6] gnu: Add python-myst-parser Vinicius Monego
` (2 preceding siblings ...)
2021-09-15 16:41 ` [bug#48842] [PATCH v3 1/5] gnu: Add python-uc-micro-py Vinicius Monego
@ 2022-11-06 10:46 ` Vinicius Monego
3 siblings, 0 replies; 25+ messages in thread
From: Vinicius Monego @ 2022-11-06 10:46 UTC (permalink / raw)
To: 48842-done
[-- Attachment #1: Type: text/plain, Size: 187 bytes --]
A corresponding patch was pushed in
788901567dc9ab7e514d738debc21f8610bec21c
<https://git.savannah.gnu.org/cgit/guix.git/commit/?id=788901567dc9ab7e514d738debc21f8610bec21c>.
Closing.
[-- Attachment #2: Type: text/html, Size: 348 bytes --]
^ permalink raw reply [flat|nested] 25+ messages in thread
end of thread, other threads:[~2022-11-06 10:47 UTC | newest]
Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-05 1:45 [bug#48842] [PATCH 0/6] gnu: Add python-myst-parser Vinicius Monego
2021-06-05 1:46 ` [bug#48842] [PATCH 1/6] gnu: Add python-pytest-datadir Vinicius Monego
2021-06-05 1:46 ` [bug#48842] [PATCH 2/6] gnu: Add python-pytest-regressions Vinicius Monego
2021-06-05 1:46 ` [bug#48842] [PATCH 3/6] gnu: Add python-linkify-it-py Vinicius Monego
2021-06-05 13:27 ` Xinglu Chen
2021-06-05 1:46 ` [bug#48842] [PATCH 4/6] gnu: Add python-markdown-it-py Vinicius Monego
2021-06-05 1:46 ` [bug#48842] [PATCH 5/6] gnu: Add python-mdit-py-plugins Vinicius Monego
2021-06-05 13:27 ` Xinglu Chen
2021-06-05 1:46 ` [bug#48842] [PATCH 6/6] gnu: Add python-myst-parser Vinicius Monego
2021-06-05 13:37 ` Xinglu Chen
2021-11-12 3:42 ` Vinicius Monego
2021-06-05 13:24 ` [bug#48842] [PATCH 1/6] gnu: Add python-pytest-datadir Xinglu Chen
2021-06-07 11:20 ` [bug#48842] [PATCH v2 1/7] " Vinicius Monego
2021-06-07 11:20 ` [bug#48842] [PATCH v2 2/7] gnu: Add python-pytest-regressions Vinicius Monego
2021-06-07 11:20 ` [bug#48842] [PATCH v2 3/7] gnu: Add python-uc-micro-py Vinicius Monego
2021-06-07 11:20 ` [bug#48842] [PATCH v2 4/7] gnu: Add python-linkify-it-py Vinicius Monego
2021-06-07 11:20 ` [bug#48842] [PATCH v2 5/7] gnu: Add python-markdown-it-py Vinicius Monego
2021-06-07 11:20 ` [bug#48842] [PATCH v2 6/7] gnu: Add python-mdit-py-plugins Vinicius Monego
2021-06-07 11:20 ` [bug#48842] [PATCH v2 7/7] gnu: Add python-myst-parser Vinicius Monego
2021-09-15 16:41 ` [bug#48842] [PATCH v3 1/5] gnu: Add python-uc-micro-py Vinicius Monego
2021-09-15 16:41 ` [bug#48842] [PATCH v3 2/5] gnu: Add python-linkify-it-py Vinicius Monego
2021-09-15 16:41 ` [bug#48842] [PATCH v3 3/5] gnu: Add python-markdown-it-py Vinicius Monego
2021-09-15 16:41 ` [bug#48842] [PATCH v3 4/5] gnu: Add python-mdit-py-plugins Vinicius Monego
2021-09-15 16:41 ` [bug#48842] [PATCH v3 5/5] gnu: Add python-myst-parser Vinicius Monego
2022-11-06 10:46 ` bug#48842: [PATCH 0/6] " Vinicius Monego
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).