unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Vinicius Monego <monego@posteo.net>
To: Xinglu Chen <public@yoctocell.xyz>, 48842@debbugs.gnu.org
Subject: [bug#48842] [PATCH 6/6] gnu: Add python-myst-parser.
Date: Fri, 12 Nov 2021 03:42:01 +0000	[thread overview]
Message-ID: <713d52030894e7ce699793184b2039315f8b20d4.camel@posteo.net> (raw)
In-Reply-To: <87r1hg8mar.fsf@yoctocell.xyz>

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!






  reply	other threads:[~2021-11-12  3:43 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=713d52030894e7ce699793184b2039315f8b20d4.camel@posteo.net \
    --to=monego@posteo.net \
    --cc=48842@debbugs.gnu.org \
    --cc=public@yoctocell.xyz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).