From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oMEXE9Bxv2A2xQAAgWs5BA (envelope-from ) for ; Tue, 08 Jun 2021 15:34:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id YNdBDtBxv2C8QQAAbx9fmQ (envelope-from ) for ; Tue, 08 Jun 2021 13:34:08 +0000 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 0573818578 for ; Tue, 8 Jun 2021 15:34:08 +0200 (CEST) Received: from localhost ([::1]:45976 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqbrq-0000gQ-P9 for larch@yhetil.org; Tue, 08 Jun 2021 09:34:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44572) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqbrn-0000gI-B6 for guix-patches@gnu.org; Tue, 08 Jun 2021 09:34:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46155) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lqbrn-0004PI-2J for guix-patches@gnu.org; Tue, 08 Jun 2021 09:34:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lqbrm-0007F6-Fd for guix-patches@gnu.org; Tue, 08 Jun 2021 09:34:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48920] [PATCH 1/2] gnu: python-toolz: Enable tests. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 08 Jun 2021 13:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48920 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48920@debbugs.gnu.org Cc: Vinicius Monego X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162315920327792 (code B ref -1); Tue, 08 Jun 2021 13:34:02 +0000 Received: (at submit) by debbugs.gnu.org; 8 Jun 2021 13:33:23 +0000 Received: from localhost ([127.0.0.1]:57701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqbr8-0007EC-TI for submit@debbugs.gnu.org; Tue, 08 Jun 2021 09:33:23 -0400 Received: from lists.gnu.org ([209.51.188.17]:33480) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqbr6-0007E4-UZ for submit@debbugs.gnu.org; Tue, 08 Jun 2021 09:33:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44456) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqbr6-0000eO-KW for guix-patches@gnu.org; Tue, 08 Jun 2021 09:33:20 -0400 Received: from mout01.posteo.de ([185.67.36.65]:50727) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqbr2-0003vA-Ke for guix-patches@gnu.org; Tue, 08 Jun 2021 09:33:20 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 28260240029 for ; Tue, 8 Jun 2021 15:33:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1623159193; bh=WPU2pak4cWG61Cl0yfZPyPHC2cGmzIVRdeBQaUipti0=; h=From:To:Cc:Subject:Date:From; b=ph31/xmG6/+ivKIznmBVygarWbwQfPW809gWlRtA3cN9ibdWGqSgh8bWoQIlUZeii v63J6WsuLk8B0xld8sCDwkiFUXlePBIvLf1UR4jfVyX8CYdLIg4PhgNfna3N3/ZRpC yMFHYhvP34eZ5dIVRJzKaZMK860nAqd8UzM0B8mhCXGJ7CzKLSVxNbtzehF/Yc5ZvB 2XQp1X6zu789vwM2TdosENCcuzlDof9jUJ2znafcgnuWVIvngqBM5B35dUwMgj5nHq qcgzITSNO7V9zAAnV5S9VhHYcVmeDmDGihpATSsxIJYKGxz+0QtllN9jrnSmUM5uKv h0MQf6lrVMEvQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Fzrlq33mHz6tmS; Tue, 8 Jun 2021 15:33:11 +0200 (CEST) From: Vinicius Monego Date: Tue, 8 Jun 2021 13:33:03 +0000 Message-Id: <20210608133303.326867-1-monego@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.65; envelope-from=monego@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1623159248; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=SAusBUgm4HmLjPRhK746ynCbHS1mzNCelly5elkEGSQ=; b=a+cJMxwszqAxA9JrpwomOEaI7MmyMzU8SLUemg0aYAaeQ34TN1Epz7Qs189upO7LCowqz+ tMA+38RybcgDc2XKf2nKxWjZlKZQYgEuCsrXcjC/01KJZ1nHm+DS8ixsSy7oot8akOUaIw XllQo6Q9+0+TkEN69iaH5iMq+boqjBlopGITFWYId8RD2DF1nsZnqN8BaftC/g/EkW0mlX 7jlQ8OzwYQ2ZY21JPWhxAVqgCpqSlg0IYjtuWBhfMnUXs6S6thuna7gi8kxTT1lW8fG3VJ gkU+rRJLYbVOiSumlS563KhcjwWvFRj3+gnrjjmC81xLtMTFBl4g7GL74w/6jQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623159248; a=rsa-sha256; cv=none; b=pw4aqMLMN7OkrPTC9paDdP9Q22dgKWoaoEA4CmD05w0FLkafafPlPHv1oi6TbcabW6E/k7 EpV45yY+MfayhVaytDQjNqOujisFq7Dr0wKB7ByuM09RZ9pA9y0SIKMtP/s4KMu7HkOvFn HkVDsloSvn0RR6Rt9L876TaRvpYxrksrtg9ZnPLcW/Rt+jiwq+Xc0Cl96M8KmAFSFoKgdH ThXb5v6cKpUonlVA4/hWIWk7TL2AqO115EUgISnnvZHTrxWiLz58lMtmzquJr9vZQ+L/nw tbKrOS/bqOxihV62KuPZC6BKkhoB/wmil21aBfhKGwLIgSdhx3uXWWvyuiLKhw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b="ph31/xmG"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 3.68 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b="ph31/xmG"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 0573818578 X-Spam-Score: 3.68 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7Aa06wlkQGJb * gnu/packages/python-xyz.scm (python-toolz)[arguments]: Remove #:tests?. Override check phase. [native-inputs]: Add python-pytest. --- gnu/packages/python-xyz.scm | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 0d6c9fc2c5..c724357c11 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -21341,9 +21341,17 @@ library's @code{threading} module.") (base32 "1j9i7fdjnx9dz35fdj5gvgxx6585ja9sxgaiv65if77nlxz0m7wj")))) (build-system python-build-system) - ;; FIXME: tests cannot be computed: "Can't perform this operation for - ;; unregistered loader type" - (arguments '(#:tests? #f)) + (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" "--doctest-modules" + "--pyargs" "toolz"))))))) + (native-inputs + `(("python-pytest" ,python-pytest))) (home-page "https://github.com/pytoolz/toolz/") (synopsis "List processing tools and functional utilities") (description -- 2.31.1