From patchwork Wed Apr 14 20:54:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Munyoki Kilyungi X-Patchwork-Id: 28555 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 87C1927BC76; Wed, 14 Apr 2021 21:56:37 +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=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED,URIBL_SBL,URIBL_SBL_A 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 F12FD27BC75 for ; Wed, 14 Apr 2021 21:56:36 +0100 (BST) Received: from localhost ([::1]:60512 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWmYu-0008TV-5a for patchwork@mira.cbaines.net; Wed, 14 Apr 2021 16:56:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45986) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWmYN-0008AK-OY for guix-patches@gnu.org; Wed, 14 Apr 2021 16:56:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52580) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lWmYN-00023r-HO for guix-patches@gnu.org; Wed, 14 Apr 2021 16:56:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lWmYN-0000d0-Go for guix-patches@gnu.org; Wed, 14 Apr 2021 16:56:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47593] [PATCH v2 3/6] gnu: Add python-pytest-helpers-namespace. Resent-From: BonfaceKilz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 14 Apr 2021 20:56:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47593 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47593@debbugs.gnu.org Cc: BonfaceKilz , jgart@dismail.de, efraim@flashner.co.il Received: via spool by 47593-submit@debbugs.gnu.org id=B47593.16184337502307 (code B ref 47593); Wed, 14 Apr 2021 20:56:03 +0000 Received: (at 47593) by debbugs.gnu.org; 14 Apr 2021 20:55:50 +0000 Received: from localhost ([127.0.0.1]:35878 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWmY7-0000ax-0q for submit@debbugs.gnu.org; Wed, 14 Apr 2021 16:55:50 -0400 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:42765) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWmY3-0000a6-Eu for 47593@debbugs.gnu.org; Wed, 14 Apr 2021 16:55:45 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 9EAC715EF; Wed, 14 Apr 2021 16:55:37 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 14 Apr 2021 16:55:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= bonfacemunyoki.com; h=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=fm1; bh=evO4ZoeIa+G9Qr2WKQnEXr/5Wy l4yGQwjBPOKvl29o4=; b=LsH5NuC/x/SLp6sLuKjCDh/WnEw00B6xKFcVxFQ3w5 70IruA39AR0vrXei4rZepeEVh48hPX/fynrCBCRPXG90JRYTxstZo5oIcqzLLr34 3D1xBpwJOFSdELcSPbCcghv3rkr8lJRUd6P2EPPuZPxjgpst2nleYOrbh8LEkyde DDH3tI/K2kk0CKfpO70B4148dg/92Moz/H4pEpCZRKIXmnjDIf+6EcTIzqFHlmsr UUlt9rd+FS1NbwqdkEiO3Drce+jjtNEJcdc1VY3xD/MXvZibmvXVTUufeZqyoVuA xyUKj6syhBIvgEJCzUH0gMQU9UJo1QTOxYLLJiwYGAuQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=evO4ZoeIa+G9Qr2WKQnEXr/5Wyl4yGQwjBPOKvl29 o4=; b=Lwphdu4xr67ff3EaxmNGk3BAoDH5liLXSuF01nHbgALY2EwchsY87b4UJ qYQHJ2VjiygtMS37ctwsB94s8Bxahdj4ZLgtAj3qyjxLuH3vROwSnSGYD/mJHhsm DC5PwkYWqkcTWy/JBnLEuzEbUurXxg4ndNNeETbXotZEEaEhL2ZbCj1KtzVFFH9q VfSNI5BT9QHjL6bGxRf3FtHl4nnEbIMuI/vn9TRl5cbj6I/TFKlYnpFcaSV7vMaV 9eRdwl7VXZ7r1JW+5nEPyYREyCQEMlLC/p93/VDwypQAWWRGzLmtl5pvIVU1ZrPj Sbg0WNK6nIZFcNC7RGFfquiGF13WQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudeluddgudehjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfgggtgfesth ekredtredtjeenucfhrhhomhepuehonhhfrggtvgfmihhliicuoehmvgessghonhhfrggt vghmuhhnhihokhhirdgtohhmqeenucggtffrrghtthgvrhhnpeettdfggfekudfgueehud eivdefudekhedtfefgueefveevkedvueejieeuheffkeenucffohhmrghinhepghhithhh uhgsrdgtohhmnecukfhppeeguddrkedurddvrddufeehnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgvsegsohhnfhgrtggvmhhunhihohhk ihdrtghomh X-ME-Proxy: Received: from localhost.localdomain (unknown [41.81.2.135]) by mail.messagingengine.com (Postfix) with ESMTPA id 638BD108005F; Wed, 14 Apr 2021 16:55:35 -0400 (EDT) From: BonfaceKilz Date: Wed, 14 Apr 2021 23:54:59 +0300 Message-Id: <20210414205502.28792-4-me@bonfacemunyoki.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210414205502.28792-1-me@bonfacemunyoki.com> References: <20210414205502.28792-1-me@bonfacemunyoki.com> 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-helpers-namespace): New variable. Co-authored-by: jgart --- gnu/packages/python-check.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index bde836a931..92887ef625 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -12,6 +12,7 @@ ;;; Copyright © 2021 Sharlatan Hellseher ;;; Copyright © 2021 Brendan Tildesley ;;; Copyright © 2021 Guillaume Le Vaillant +;;; Copyright © 2021 Bonface Munyoki Kilyungi ;;; ;;; This file is part of GNU Guix. ;;; @@ -374,6 +375,40 @@ provides a shortcut to testing all code and documentation for a given sub-package.") (license license:bsd-3))) +(define-public python-pytest-helpers-namespace + (package + (name "python-pytest-helpers-namespace") + (version "2021.3.24") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pytest-helpers-namespace" version)) + (sha256 + (base32 + "0pyj2d45zagmzlajzqdnkw5yz8k49pkihbydsqkzm413qnkzb38q")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs outputs #:allow-other-keys) + ;; Make the installed plugin discoverable by Pytest. + (add-installed-pythonpath inputs outputs) + (invoke "pytest" "-vv")))))) + (native-inputs + `(("python-pytest" ,python-pytest-6) + ("python-setuptools" ,python-setuptools) + ("python-setuptools-scm" ,python-setuptools-scm) + ("python-setuptools-declarative-requirements" + ,python-setuptools-declarative-requirements))) + (home-page + "https://github.com/saltstack/pytest-helpers-namespace") + (synopsis "Pytest Helpers Namespace Plugin") + (description "Pytest Helpers Namespace Plugin provides a helpers pytest +namespace which can be used to register helper functions without requiring +someone to import them in their actual tests to use them.") + (license license:asl2.0))) + (define-public python-pytest-openfiles (package (name "python-pytest-openfiles")