From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:59614) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iqvzz-0002Ux-Lj for guix-patches@gnu.org; Mon, 13 Jan 2020 04:27:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iqvzy-000891-J5 for guix-patches@gnu.org; Mon, 13 Jan 2020 04:27:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:52691) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iqvzy-00088a-G8 for guix-patches@gnu.org; Mon, 13 Jan 2020 04:27:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iqvzy-0004T5-BY for guix-patches@gnu.org; Mon, 13 Jan 2020 04:27:02 -0500 Subject: [bug#39110] [PATCH 1/2] gnu: Add python-asynctest Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:59535) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iqvzt-0002OF-5y for guix-patches@gnu.org; Mon, 13 Jan 2020 04:26:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iqvzs-0007uS-0n for guix-patches@gnu.org; Mon, 13 Jan 2020 04:26:57 -0500 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:42720) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iqvzr-0007nq-Fe for guix-patches@gnu.org; Mon, 13 Jan 2020 04:26:55 -0500 Received: by mail-wr1-x42a.google.com with SMTP id q6so7699920wro.9 for ; Mon, 13 Jan 2020 01:26:53 -0800 (PST) From: Lars-Dominik Braun Date: Mon, 13 Jan 2020 10:26:34 +0100 Message-Id: <20200113092634.18637-1-ldb@leibniz-psychology.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 39110@debbugs.gnu.org Cc: Lars-Dominik Braun * gnu/packages/python-xyz.scm (python-asynctest): New variable --- gnu/packages/python-xyz.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 9736bfa3fa..21d7b21132 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -17280,3 +17280,36 @@ server implementation of the SSHv2 protocol on top of the Python 3.6+ asyncio framework") (license license:epl2.0))) +(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