From patchwork Fri Aug 7 13:24:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 23544 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id F26D427BBE4; Fri, 7 Aug 2020 14:25:13 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 789FD27BBE5 for ; Fri, 7 Aug 2020 14:25:13 +0100 (BST) Received: from localhost ([::1]:55324 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k42Mz-0000le-03 for patchwork@mira.cbaines.net; Fri, 07 Aug 2020 09:25:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52044) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k42Mq-0000jM-Ue for guix-patches@gnu.org; Fri, 07 Aug 2020 09:25:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44653) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k42Mq-0005kk-Kv for guix-patches@gnu.org; Fri, 07 Aug 2020 09:25:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k42Mq-00048g-IB for guix-patches@gnu.org; Fri, 07 Aug 2020 09:25:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42744] [PATCH 4/4] gnu: Add python-pytest-trio. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 07 Aug 2020 13:25:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42744 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 42744@debbugs.gnu.org Cc: Vinicius Monego X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159680669815845 (code B ref -1); Fri, 07 Aug 2020 13:25:04 +0000 Received: (at submit) by debbugs.gnu.org; 7 Aug 2020 13:24:58 +0000 Received: from localhost ([127.0.0.1]:56193 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k42Mj-00047V-W0 for submit@debbugs.gnu.org; Fri, 07 Aug 2020 09:24:58 -0400 Received: from lists.gnu.org ([209.51.188.17]:57690) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k42Mj-00047O-4L for submit@debbugs.gnu.org; Fri, 07 Aug 2020 09:24:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52032) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k42Mi-0000hV-UY for guix-patches@gnu.org; Fri, 07 Aug 2020 09:24:56 -0400 Received: from mout01.posteo.de ([185.67.36.65]:52906) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k42Mh-0005k5-7c for guix-patches@gnu.org; Fri, 07 Aug 2020 09:24:56 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id E427416005F for ; Fri, 7 Aug 2020 15:24:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1596806693; bh=RDpxEUY+LroiDlX+smTAI7Yi3kgDqRUKSLtCdkif59w=; h=From:To:Cc:Subject:Date:From; b=hk6pj6wp6sdgK27pzlTP4lJ2yO/q66RI104pI833ttLa++9/4zWF+jhGhfVKwp8M+ 6De9KSW26lgrG4UVia5q/2nO9HTGmSMRPDBBv1cI93kaKKyh5WdexnuB8UuJzTLLTE xVOE5/WS2JyHnAdrTdT3OSHzcVcHNrpGqpZ6SWOx29AtDKx7NfagPgojPKiDEYxHAU bdEf4WvNUP0qIxoJIv+HKvORDoAZncHWAPj4UehzFS6XunncxUILulcr2UXMwlp3/u F1NsIGyobLV+PDNFbZMcx7ANlI5HFaXO5nPfbrsbVQ0Qx5kvBEhJ0mhuVNF/7H90p1 D/WxLYyAolngQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4BNR104Wmnz6tmM; Fri, 7 Aug 2020 15:24:52 +0200 (CEST) From: Vinicius Monego Date: Fri, 7 Aug 2020 10:24:16 -0300 Message-Id: <20200807132416.49309-4-monego@posteo.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200807132416.49309-1-monego@posteo.net> References: <20200807132416.49309-1-monego@posteo.net> MIME-Version: 1.0 Received-SPF: pass client-ip=185.67.36.65; envelope-from=monego@posteo.net; helo=mout01.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/07 09:24:45 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-check.scm (python-pytest-trio): New variable. --- This pytest line was taken from pytest.ini the source code. Tests were failing with simpler commands. gnu/packages/python-check.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 7a84fe39f9..d0bde27e13 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -436,6 +436,39 @@ in Pytest.") of the project to ensure it renders properly.") (license license:expat))) +(define-public python-pytest-trio + (package + (name "python-pytest-trio") + (version "0.6.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pytest-trio" version)) + (sha256 + (base32 "1zm8didm9h5jkqhghl9bvqs7kr7sjci282c7grhk6yhpzn8a9w4v")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs outputs #:allow-other-keys) + (add-installed-pythonpath inputs outputs) + (invoke "pytest" "-W" "error" "-ra" "-v" "--pyargs" + "pytest_trio" "--verbose" "--cov")))))) + (native-inputs + `(("python-hypothesis" ,python-hypothesis) + ("python-pytest" ,python-pytest) + ("python-pytest-cov" ,python-pytest-cov))) + (propagated-inputs + `(("python-trio" ,python-trio))) + (home-page "https://github.com/python-trio/pytest-trio") + (synopsis "Pytest plugin for trio") + (description + "This is a pytest plugin to help you test projects that use Trio, a +friendly library for concurrency and async I/O in Python.") + ;; Either license applies. + (license (list license:expat license:asl2.0)))) + (define-public python-pytest-flake8 (package (name "python-pytest-flake8")