From patchwork Thu Oct 21 04:01:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 33988 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 203D227BBE3; Thu, 21 Oct 2021 05:07:06 +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 C0E5A27BBE1 for ; Thu, 21 Oct 2021 05:07:05 +0100 (BST) Received: from localhost ([::1]:43960 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdPM8-00063E-Sr for patchwork@mira.cbaines.net; Thu, 21 Oct 2021 00:07:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40230) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdPKB-0004lJ-Q5 for guix-patches@gnu.org; Thu, 21 Oct 2021 00:05:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44473) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mdPKB-0001hy-GN for guix-patches@gnu.org; Thu, 21 Oct 2021 00:05:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mdPKB-0005ij-Bh for guix-patches@gnu.org; Thu, 21 Oct 2021 00:05:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51314] [PATCH 25/29] gnu: python-wrapt: Enable tests. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Oct 2021 04:05:03 +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.163478906021872 (code B ref 51314); Thu, 21 Oct 2021 04:05:03 +0000 Received: (at 51314) by debbugs.gnu.org; 21 Oct 2021 04:04:20 +0000 Received: from localhost ([127.0.0.1]:56005 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdPJU-0005gi-2J for submit@debbugs.gnu.org; Thu, 21 Oct 2021 00:04:20 -0400 Received: from mout01.posteo.de ([185.67.36.65]:56523) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdPJS-0005gF-EO for 51314@debbugs.gnu.org; Thu, 21 Oct 2021 00:04:18 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id D8E3D240026 for <51314@debbugs.gnu.org>; Thu, 21 Oct 2021 06:04:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1634789052; bh=qY2iLO8bFf+ArwiKFzeBnuEgkLHxwKCQVWeLk/elYmc=; h=From:To:Cc:Subject:Date:From; b=IcNXAPTbdcJc4yFk27ELiYvXm6Xf3hrTNDAWoeiw/VidI7u6x3fKQVxFESyOAsU6b afVlRA/YvrXx5K1a1zAv8LUw0LVJ4CZhWZNC9X6/m738im5IVdQHuy1vyK4upqze4R CybA4etD6QLF2Zr3SzPE29w+P1nTkr7yIcqZYIAGcq5CbwvGM7u5Qqi+00KgnrH4qu Z8NEXgXTYiFMXDtMlB9tdizA47Rl9p7+I88pdCdeGN1WH6zddM+ojaVQYvj5lD2ayh YGTnL0Yrk/zDtWp8CZNfWFHWNI8CmZdVW9jZXnMgB6GyiauNBZ0uyEDFrx0tOsAoKL xpZjSVONqe9Hw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HZYkz73v8z6tm9; Thu, 21 Oct 2021 06:04:11 +0200 (CEST) From: Vinicius Monego Date: Thu, 21 Oct 2021 04:01:56 +0000 Message-Id: <20211021040200.241873-21-monego@posteo.net> In-Reply-To: <20211021040200.241873-1-monego@posteo.net> References: <20211021040200.241873-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-xyz.scm (python-wrapt)[source]: Fetch from GitHub. [arguments]: Remove #:tests?. Override 'check phase. --- gnu/packages/python-xyz.scm | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 5476e3913a..eef7ef5add 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -10812,16 +10812,23 @@ Supported netlink families and protocols include: (version "1.12.1") (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 - "1mwpkdnqxf0yxj1a0hsnl06lf287qi5ap7309wm37x45zf0zlbxn")))) + (base32 "0943ixbiwixl5ch60vx7i2nia16534zgq2571ldzq1iimq3cz5vj")))) (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