unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Vinicius Monego <monego@posteo.net>
To: Stephen Paul Weber <singpolyma@singpolyma.net>, 51675@debbugs.gnu.org
Subject: [bug#51675] [PATCH 5/5] gnu: Add python-wokkel.
Date: Fri, 12 Nov 2021 18:14:54 +0000	[thread overview]
Message-ID: <3d03776d57f9330f48b7f0250ec01841662ec1b2.camel@posteo.net> (raw)
In-Reply-To: <20211108024520.49594-5-singpolyma@singpolyma.net>

Em dom, 2021-11-07 às 21:45 -0500, Stephen Paul Weber escreveu:
> * gnu/packages/python-xyz.scm (python-wokkel): New variable.
> ---
>  gnu/packages/python-xyz.scm | 40
> +++++++++++++++++++++++++++++++++++++
>  1 file changed, 40 insertions(+)
> 
> diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-
> xyz.scm
> index 4305e06030..0f1cd97e2f 100644
> --- a/gnu/packages/python-xyz.scm
> +++ b/gnu/packages/python-xyz.scm
> @@ -27757,3 +27757,43 @@ project. Rather than reading the Git history
> as some newer tools to produce it,
>  or having one single file which developers all write to, towncrier
> reads
>  \"news fragments\" which contain information useful to end users.")
>      (license license:expat)))
> +
> +(define-public python-wokkel
> +  (package
> +    (name "python-wokkel")
> +    (version "18.0.0")
> +    (source
> +      (origin
> +        (method url-fetch)
> +        (uri (pypi-uri "wokkel" version))
> +        (sha256
> +          (base32
> "1spq44gg8gsviqx1dvlmjpgfc0wk0jpyx4ap01y2pad1ai9cw016"))))
> +    (build-system python-build-system)
> +    (arguments
> +     '(#:phases (modify-phases %standard-phases
> +                  (add-after 'unpack 'patch-tests
> +                    (lambda _
> +                      (substitute* "wokkel/test/test_client.py"
> +                        (("'example.org', connector.domain")
> +                         "b'example.org', connector.domain"))
> +                      (substitute* "wokkel/test/test_xmppim.py"
> +                        (("def test_onRosterRemove.*:")
> +                         "def test_onRosterRemove(self):\n       
> return")
> +                        (("def test_onRosterSet.*:")
> +                         "def test_onRosterSet(self):\n       
> return")))))))

Is this to skip tests? In unittest they can be skipped in a simpler way
by prefixing the test name with _:

> def test_onRosterRemove

becomes

> def _test_onRosterRemove

.

> +    (propagated-inputs
> +      `(("python-dateutil" ,python-dateutil)
> +        ("python-incremental" ,python-incremental)
> +        ("python-twisted" ,python-twisted)))
> +    (native-inputs
> +      `(("python-coverage" ,python-coverage)
> +        ("python-pydoctor" ,python-pydoctor)
> +        ("python-pyflakes" ,python-pyflakes)
> +        ("python-sphinx" ,python-sphinx)

Sphinx should be an input only if documentation is being built. If the
package fails to build when sphinx is not found, then it should remain.

> +        ("python-towncrier" ,python-towncrier)))
> +    (home-page "https://wokkel.ik.nu/")
> +    (synopsis "Twisted support library for Jabber/XMPP")
> +    (description "A collection of enhancements on top of the
> ​Twisted networking
> +framework. It provides enhancements to the Jabber/XMPP protocol
> implementation
> +as found in Twisted Words.")

Same comment about description from patch 4.

> +    (license license:expat)))






  reply	other threads:[~2021-11-12 18:16 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-08  2:42 [bug#51675] Add python-wokkel, Jabber/XMPP module for Twisted Stephen Paul Weber
2021-11-08  2:45 ` [bug#51675] [PATCH 1/5] gnu: python-incremental: Update to 21.3.0 Stephen Paul Weber
2021-11-08  2:45   ` [bug#51675] [PATCH 2/5] gnu: python-twisted: Update to 21.7.0 Stephen Paul Weber
2021-11-12 17:53     ` Vinicius Monego
2021-11-08  2:45   ` [bug#51675] [PATCH 3/5] gnu: Add python-pydoctor Stephen Paul Weber
2021-11-12 18:02     ` Vinicius Monego
2021-11-08  2:45   ` [bug#51675] [PATCH 4/5] gnu: Add python-towncrier Stephen Paul Weber
2021-11-12 18:06     ` Vinicius Monego
2021-11-08  2:45   ` [bug#51675] [PATCH 5/5] gnu: Add python-wokkel Stephen Paul Weber
2021-11-12 18:14     ` Vinicius Monego [this message]
2021-11-12 18:21   ` [bug#51675] [PATCH 1/5] gnu: python-incremental: Update to 21.3.0 Vinicius Monego
2021-11-14  1:50 ` [bug#51675] [PATCH v2 " Stephen Paul Weber
2021-11-14  1:50   ` [bug#51675] [PATCH v2 2/5] gnu: python-twisted: Update to 21.7.0 Stephen Paul Weber
2021-11-14  1:50   ` [bug#51675] [PATCH v2 3/5] gnu: Add python-pydoctor Stephen Paul Weber
2021-11-14  1:50   ` [bug#51675] [PATCH v2 4/5] gnu: Add python-towncrier Stephen Paul Weber
2021-11-14  1:50   ` [bug#51675] [PATCH v2 5/5] gnu: Add python-wokkel Stephen Paul Weber
2022-01-14  0:48 ` [bug#51675] Add python-wokkel, Jabber/XMPP module for Twisted Stephen Paul Weber
2022-04-25  1:45   ` 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=3d03776d57f9330f48b7f0250ec01841662ec1b2.camel@posteo.net \
    --to=monego@posteo.net \
    --cc=51675@debbugs.gnu.org \
    --cc=singpolyma@singpolyma.net \
    /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).