From patchwork Wed Mar 20 22:28:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 62075 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 A235F27BBEB; Wed, 20 Mar 2024 22:32:29 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id D952827BBE2 for ; Wed, 20 Mar 2024 22:32:28 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rn4Tn-0002tH-2j; Wed, 20 Mar 2024 18:32:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rn4T7-0001kJ-2O for guix-patches@gnu.org; Wed, 20 Mar 2024 18:31:38 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rn4T4-0005ut-Uu for guix-patches@gnu.org; Wed, 20 Mar 2024 18:31:32 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rn4Ti-0005mX-H2 for guix-patches@gnu.org; Wed, 20 Mar 2024 18:32:10 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#69924] [PATCH 44/49] gnu: Add python-nose-exclude. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 20 Mar 2024 22:32:10 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69924 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69924@debbugs.gnu.org Cc: Sharlatan Hellseher Received: via spool by 69924-submit@debbugs.gnu.org id=B69924.171097392522106 (code B ref 69924); Wed, 20 Mar 2024 22:32:10 +0000 Received: (at 69924) by debbugs.gnu.org; 20 Mar 2024 22:32:05 +0000 Received: from localhost ([127.0.0.1]:36597 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rn4Tc-0005kF-Ie for submit@debbugs.gnu.org; Wed, 20 Mar 2024 18:32:05 -0400 Received: from mail-wm1-f51.google.com ([209.85.128.51]:46257) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rn4Sa-0005Yg-2V for 69924@debbugs.gnu.org; Wed, 20 Mar 2024 18:31:01 -0400 Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-41468f6d584so2365725e9.0 for <69924@debbugs.gnu.org>; Wed, 20 Mar 2024 15:30:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710973755; x=1711578555; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pUDkWkEnzDbzr1ctURQUcyK+kEYcWlku9yEdU2omtBo=; b=P3M3lU6eScElzjc8GObg7pY7QI79WMPAOeGZkx2rBU1wLb6IIwd+ds0Nk2lWX969ME iZCDOSODQwOm3bFetFiSaqu5RTWAbYxslQI1J4SYWy0AWysFmvBx8g9m4AQfL8hPlTUy 7bpvEomyTRJShJy91FOHyCeHQZoPY7d2LsyYe2jGa7aZdp/bcxYka7HZ+rwBN5sTUCP1 fwNL/OZYFZPqBI4SWtYQdyK1fXuX2BIFIN3RWvAHiBxryDHJcyFGF2nJ+f/bfFtlwkB+ oNHvic9y0GPDud9o1EKpRqFoq+Pr9bRBkcuCUy+NRhmZSacGBmjqb7XFbZb8otH7jzHo SKFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710973755; x=1711578555; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pUDkWkEnzDbzr1ctURQUcyK+kEYcWlku9yEdU2omtBo=; b=ow4+PQmHmvqLYh0GOP+/LfXNeIGKCiRxZ4PpeU/9EbIuFj8cBIVkEnv3Elbew/6hM4 P+muYWv8d701DKqqpyPFPP9ZkGxC+wqGNlWWWPCsvLIfRsTkv0xqvyVsDXSdfX1u0QLA CBLOzyKiBANpdLwmswZE6ZUg8W5QgtHZkYGKYLceoVTvdQE45MDYrv4qZ+FtA0Xj2NKF NH4niwPlyWCokrj0Nq38ZTzwmkcGofaIKJ2Ce42Qk8pnz/SwZkuEiD2za3G7DTpbNGSH qoppqbRMKir4l8Vhlh8Tv03Xfxgp3xMo2W9RR5+DQZ3BBTpV9pzzMLhBJHoVz8/NSxI8 oQdA== X-Gm-Message-State: AOJu0YzQY2i8JxtbfnJ1aDVHSyeNIw/jPkxZeR/sJUVGOdGnfZ0Gs2f8 sZtUzMenky5Z0RLui0kHZSZ3qU4khSTtVR1Xgc44F6O+vUl1sXFmtpGwfjxfQXE= X-Google-Smtp-Source: AGHT+IFuL9GmQ4xv6IvcuXrVCSjSPH7lpAJ5OT/qSQmmO06QOQrGpSnb+ogsOq3p/HRuhGfR2KIBaQ== X-Received: by 2002:a05:600c:3b94:b0:414:6c34:9ba0 with SMTP id n20-20020a05600c3b9400b004146c349ba0mr2154537wms.16.1710973754824; Wed, 20 Mar 2024 15:29:14 -0700 (PDT) Received: from localhost.localdomain (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113]) by smtp.gmail.com with ESMTPSA id fm22-20020a05600c0c1600b004147266a37dsm543921wmb.30.2024.03.20.15.29.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 15:29:14 -0700 (PDT) From: Sharlatan Hellseher Date: Wed, 20 Mar 2024 22:28:14 +0000 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/check.scm (python-nose-exclude): New variable. Change-Id: I5c91b682163890c822f7d4a548e92fdd287d78a2 --- gnu/packages/check.scm | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index bd1f2d1b65..9ce21b05ba 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -39,7 +39,7 @@ ;;; Copyright © 2021 Hugo Lecomte ;;; Copyright © 2022 Maxime Devos ;;; Copyright © 2022, 2023 David Elsing -;;; Copyright © 2022, 2023 Sharlatan Hellseher +;;; Copyright © 2022-2024 Sharlatan Hellseher ;;; Copyright © 2022 jgart ;;; Copyright © 2023 Luis Felipe López Acevedo ;;; Copyright © 2023 Timo Wilken @@ -2941,6 +2941,37 @@ (define-public python-rednose @command{nosetests} command of the Python Nose unit test framework.") (license license:bsd-3))) +(define-public python-nose-exclude + (package + (name "python-nose-exclude") + (version "0.5.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "nose-exclude" version)) + (sha256 + (base32 "0123x1lyv5b2p9civcfg8vilj2ga3q7p2ks1hq25z0gb3ssai3zp")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'disable-test + (lambda _ + ;; Disable failing test: AssertionError. + (substitute* '("test_dirs/build/test.py" + "test_dirs/test_not_me/test.py") + (("def test_i_should_never_run") + "def off_i_should_never_run"))))))) + (propagated-inputs + (list python-nose)) + (home-page "https://github.com/kgrandis/nose-exclude") + (synopsis "Exclude specific directories from nosetests runs") + (description + "@code{nose-exclude} is a Nose plugin that allows you to easily specify +directories to be excluded from testing.") + (license license:lgpl2.1+))) + (define-public python-nose-random (package (name "python-nose-random")