From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4ea1::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sCMjE29NymG6ewAAgWs5BA (envelope-from ) for ; Tue, 28 Dec 2021 00:34:07 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id gGkTDW9NymG2MwAAG6o9tA (envelope-from ) for ; Tue, 28 Dec 2021 00:34:07 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id EE01B132AC for ; Tue, 28 Dec 2021 00:34:06 +0100 (CET) Received: from localhost ([::1]:39112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n1zVG-0002ix-0q for larch@yhetil.org; Mon, 27 Dec 2021 18:34:06 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39464) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1zUJ-0001Vy-7P for guix-patches@gnu.org; Mon, 27 Dec 2021 18:33:07 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:33088) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n1zUI-0001gj-QN for guix-patches@gnu.org; Mon, 27 Dec 2021 18:33:06 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n1zUI-0000vk-O7 for guix-patches@gnu.org; Mon, 27 Dec 2021 18:33:06 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51314] [PATCH v3 17/21] gnu: python-wrapt: Enable tests. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 27 Dec 2021 23:33:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51314 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51314@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 51314-submit@debbugs.gnu.org id=B51314.16406479673425 (code B ref 51314); Mon, 27 Dec 2021 23:33:06 +0000 Received: (at 51314) by debbugs.gnu.org; 27 Dec 2021 23:32:47 +0000 Received: from localhost ([127.0.0.1]:44612 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1zTz-0000tB-7k for submit@debbugs.gnu.org; Mon, 27 Dec 2021 18:32:47 -0500 Received: from mout02.posteo.de ([185.67.36.66]:50717) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1zTv-0000sW-Ld for 51314@debbugs.gnu.org; Mon, 27 Dec 2021 18:32:44 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 1681E240106 for <51314@debbugs.gnu.org>; Tue, 28 Dec 2021 00:32:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1640647958; bh=7PU3xZaEfzpI6URc6g+w9m09Vr/CR+KOuzWvzgA4K5A=; h=From:To:Cc:Subject:Date:From; b=P5wFPxbOxIfSUaNM5iqC1EQe9WnfE/AjrrGmO59xaETi4SkbfdUy9Nun4JReOAU68 TtwOfrYKcZFY8NpxSlQml6Jq6xzwtbtPIYpHg5RJ9kkSRg4Z9jmfk8nDce+4AbXZz/ JWAckzARixMoKXx9bQK6HUDa82F2dvQZD1jR09tr7f8nQV5d1s2nON40XGXgnuan6U RxWnGwZmhuuXXsOzx9PMEU9AyOyxpOD6O+EgeZDiBsCwNrTfU23YKu/2lxrbVb6wd7 KvtgXbTFdTSWoYmoshqKAPWkqSO56DkqlwpR/SPcMecX+BDtCp7AtLbL9jhjhov4dK +xAe4MyELTkMQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JNDVF1Tlmz6tmd; Tue, 28 Dec 2021 00:32:36 +0100 (CET) From: Vinicius Monego Date: Mon, 27 Dec 2021 23:30:40 +0000 Message-Id: <20211227233044.26475-18-monego@posteo.net> In-Reply-To: <20211227233044.26475-1-monego@posteo.net> References: <20211227233044.26475-1-monego@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1640648047; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=HvGXuhjyh0IYDwKTlv7Xgbs4Q9+d2vEp71600bFZy24=; b=fu1C6Jot5T72XMWFuGGfSp0ucGCKLwD5Ijqq5FKYvQbT7/1s0XwuI2Tns4LSox6gxGOWHS 0rBVCPbl99+b7i4HsTMVkmmiJTFeKZuI4c3GeIIoFTejoYSZzXGlZXpACrgS9P6gcs3smq g1a8jn+Tcr3lrnFqaK2bxtEFgpITQcLOlAIX3a7KtU0kDeQVs6G2iGgH6n7idgA/SLFiq8 0qKtVWoO+dJ1G9uJLYG7cSjeblAGsc653pfhvJExqAndP7gHoeDvRAWOzWHrgknVOQKRgQ iVOPfAUPiNnyNuaOGN8/aMxs6b6ZZ3rc3+SuUEKTZZpURfUOLyu2JGKIPKcU6g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640648047; a=rsa-sha256; cv=none; b=ftlKlk399AqcN0KvEZ0TiPA4RPY9+V6x0DfQRZjDze6g5+yY8vKRimfR2erKC6jfxWbOTH uWP48I4I5zNMW98JlNo2gEC7Mc64cUmPIqs8ECMJwze7jA5aPBCmsf9U61jhzwWettfu3E qpRCcQijyTBOCFCq6Ys6xV3VdolwvAGmRGhMeilb6ovQuTyqKNMtFhR6kO68KUnltWBSSs fwYgNjsk8rUeVM8Rh7bIMbE1GMRJoaBWXF2OYJXym0AbIvDlBewcNWWyZ/pUDURltZ8dID JoKxexJfJDcChpNKe4kasb3zGL1qekRFcDJL233Y6DOn5DgufHSDy/Li5FIvfA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=P5wFPxbO; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -0.67 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=P5wFPxbO; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: EE01B132AC X-Spam-Score: -0.67 X-Migadu-Scanner: scn1.migadu.com X-TUID: EttQuyofu8/f * gnu/packages/python-xyz.scm (python-wrapt)[source]: Fetch from GitHub. [arguments]: Remove #:tests?. Override 'check phase. --- gnu/packages/python-xyz.scm | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index b9f555a11b..2ddbfa14b7 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -10884,15 +10884,23 @@ Supported netlink families and protocols include: (version "1.13.3") (source (origin - (method url-fetch) - (uri (pypi-uri "wrapt" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/GrahamDumpleton/wrapt") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 "11f13zqgbql26g5bkfkqalckcdlz394g6dhx4y16cvk873a9rshz")))) + (base32 "05d7xs6rvaw9gpcvsvk7ckxiax1nrxcpv41vrqkkl7zq967d9bcj")))) (build-system python-build-system) (arguments - ;; Tests are not included in the tarball, they are only available in the - ;; git repository. - `(#:tests? #f)) + `(#: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" "unittest" "discover" + "-s" "tests"))))))) (home-page "https://github.com/GrahamDumpleton/wrapt") (synopsis "Module for decorators, wrappers and monkey patching") (description -- 2.30.2