all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars-Dominik Braun <ldb@leibniz-psychology.org>
To: 39110@debbugs.gnu.org
Cc: iyzsong@member.fsf.org, Lars-Dominik Braun <ldb@leibniz-psychology.org>
Subject: [bug#39110] [PATCH 1/2] gnu: Add python-asynctest
Date: Tue, 14 Jan 2020 12:41:22 +0100	[thread overview]
Message-ID: <20200114114123.13530-1-ldb@leibniz-psychology.org> (raw)
In-Reply-To: <20200113092634.18637-1-ldb@leibniz-psychology.org>

* gnu/packages/python-xyz.scm (python-asynctest): New variable
---
 gnu/packages/python-xyz.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 2c308796e7..eb74f1e91b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -17098,3 +17098,37 @@ scripts to load entry points more quickly.")
 functional combinators.  Parser combinators are just higher-order functions
 that take parsers as their arguments and return them as result values.")
     (license license:expat)))
+
+(define-public python-asynctest
+  (package
+    (name "python-asynctest")
+    (version "0.13.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "asynctest" version))
+        (sha256
+          (base32
+            "1b3zsy7p84gag6q8ai2ylyrhx213qdk2h2zb6im3xn0m5n264y62"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda _
+             (invoke "python" "-X" "dev" "-m" "unittest" "test")))
+         (add-after 'unpack 'disable-tests
+           (lambda* _
+            (substitute* "test/test_selector.py"
+              ;; Test fails for unknown reason
+              (("def test_events_watched_outside_test_are_ignored")
+                "@unittest.skip('disabled by guix')\n    def test_events_watched_outside_test_are_ignored")))))))
+    (home-page
+      "https://github.com/Martiusweb/asynctest")
+    (synopsis
+      "Enhance the standard unittest package with features for testing asyncio
+libraries")
+    (description
+      "The package asynctest is built on top of the standard unittest module
+and cuts down boilerplate code when testing libraries for asyncio")
+    (license license:asl2.0)))
-- 
2.20.1

  parent reply	other threads:[~2020-01-14 11:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-13  9:26 [bug#39110] [PATCH 1/2] gnu: Add python-asynctest Lars-Dominik Braun
2020-01-13  9:27 ` [bug#39110] [PATCH 2/2] gnu: Add python-aionotify Lars-Dominik Braun
2020-01-13 11:08 ` [bug#39110] [PATCH 1/2] gnu: Add python-asynctest 宋文武
2020-01-14 10:59 ` Lars-Dominik Braun
2020-01-18  9:45   ` bug#39110: " 宋文武
2020-01-14 11:41 ` Lars-Dominik Braun [this message]
2020-01-14 11:41   ` [bug#39110] [PATCH 2/2] gnu: Add python-aionotify Lars-Dominik Braun

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

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

  git send-email \
    --in-reply-to=20200114114123.13530-1-ldb@leibniz-psychology.org \
    --to=ldb@leibniz-psychology.org \
    --cc=39110@debbugs.gnu.org \
    --cc=iyzsong@member.fsf.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.