From patchwork Wed Aug 11 23:44:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 32044 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 A1AD627BC78; Thu, 12 Aug 2021 00:46:26 +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,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 ESMTPS id E313127BC82 for ; Thu, 12 Aug 2021 00:46:24 +0100 (BST) Received: from localhost ([::1]:57116 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDxvU-0006J6-0L for patchwork@mira.cbaines.net; Wed, 11 Aug 2021 19:46:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44188) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDxvA-0006Br-CL for guix-patches@gnu.org; Wed, 11 Aug 2021 19:46:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53606) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDxv9-0005rO-AE for guix-patches@gnu.org; Wed, 11 Aug 2021 19:46:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mDxv9-0001EO-7c for guix-patches@gnu.org; Wed, 11 Aug 2021 19:46:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50018] [PATCH 03/19] gnu: Add python-pytest-subtests. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 11 Aug 2021 23:46:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50018 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50018@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 50018-submit@debbugs.gnu.org id=B50018.16287255584687 (code B ref 50018); Wed, 11 Aug 2021 23:46:03 +0000 Received: (at 50018) by debbugs.gnu.org; 11 Aug 2021 23:45:58 +0000 Received: from localhost ([127.0.0.1]:36914 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDxv3-0001DX-Ts for submit@debbugs.gnu.org; Wed, 11 Aug 2021 19:45:58 -0400 Received: from mout02.posteo.de ([185.67.36.66]:56155) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDxv2-0001D8-Sc for 50018@debbugs.gnu.org; Wed, 11 Aug 2021 19:45:57 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 3EB1F240101 for <50018@debbugs.gnu.org>; Thu, 12 Aug 2021 01:45:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1628725551; bh=WeIi4M8iXwf2qUGYfpSx4maP9jzHmEpcNfWAd5BmpKo=; h=From:To:Cc:Subject:Date:From; b=CWMUND7MhwHWZoX9Y688ZsLrZGL+39aEMEey1NZ4G554jZZC0auZGq6Xw5CXT/mu5 hnUFIsmV976uIW07Cc6UsZwsu4TkeGYFKxD2L67zBv28UtqJptgrwVD0re36rNQSNB 8z4mxhE9VPofXGEUQUq8e+aDSy53GU4Y1bYpF3z2bgMHAM9ehm2uTYgSY4OXBxT6GJ 0G8adkcuMFF2jmPv5Ynz9EKa5tekGM8QhtXqo5dDxWYTOer26vYU1FNf/hoavJxHP8 HssjE9ik2Wrbjx37VBs5jw0N3T/wp6cPN6SXQArkH0wt+LqNxZjXOc+G7gp44Lv8gG FcK6fKDEWy6Kg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GlRKB3SkMz9rxH; Thu, 12 Aug 2021 01:45:50 +0200 (CEST) From: Vinicius Monego Date: Wed, 11 Aug 2021 23:44:55 +0000 Message-Id: <20210811234511.32450-3-monego@posteo.net> In-Reply-To: <20210811234511.32450-1-monego@posteo.net> References: <20210811234511.32450-1-monego@posteo.net> MIME-Version: 1.0 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-subtests): New variable. --- gnu/packages/python-check.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 038ca177af..0eef7ba8e5 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -576,6 +576,34 @@ in Pytest.") settings.") (license license:expat))) +(define-public python-pytest-subtests + (package + (name "python-pytest-subtests") + (version "0.5.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pytest-subtests" version)) + (sha256 + (base32 "087i03nmkmfnrpc7mmizvr40ijnjw4lfxc22rnk8jk6s1szy9lav")))) + (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"))))))) + (native-inputs + `(("python-pytest" ,python-pytest) + ("python-setuptools-scm" ,python-setuptools-scm))) + (home-page "https://github.com/pytest-dev/pytest-subtests") + (synopsis "Unittest subTest() support and subtests fixture") + (description "This Pytest plugin provides unittest @code{subTest()} +support and @code{subtests} fixture.") + (license license:expat))) + (define-public python-pytest-vcr ;; This commit fixes integration with pytest-5 (let ((commit "4d6c7b3e379a6a7cba0b8f9d20b704dc976e9f05")