From patchwork Fri Nov 17 12:16:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 56562 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 71F9527BBEA; Fri, 17 Nov 2023 10:21:53 +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=unavailable 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 DDC8827BBE9 for ; Fri, 17 Nov 2023 10:21:51 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3vyk-00014u-94; Fri, 17 Nov 2023 05:21:38 -0500 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 1r3vyP-0000xo-Vr for guix-patches@gnu.org; Fri, 17 Nov 2023 05:21:19 -0500 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 1r3vyP-0005EJ-A6 for guix-patches@gnu.org; Fri, 17 Nov 2023 05:21:17 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r3vyN-0001JC-HR; Fri, 17 Nov 2023 05:21:15 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67237] [PATCH 31/32] gnu: python-stsci-stimage: Enable tests. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: andreas@enge.fr, efraim@flashner.co.il, bavier@posteo.net, guix-patches@gnu.org Resent-Date: Fri, 17 Nov 2023 10:21:15 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67237 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67237@debbugs.gnu.org Cc: Sharlatan Hellseher , Andreas Enge , Efraim Flashner , Eric Bavier X-Debbugs-Original-Xcc: Andreas Enge , Efraim Flashner , Eric Bavier Received: via spool by 67237-submit@debbugs.gnu.org id=B67237.17002164554684 (code B ref 67237); Fri, 17 Nov 2023 10:21:15 +0000 Received: (at 67237) by debbugs.gnu.org; 17 Nov 2023 10:20:55 +0000 Received: from localhost ([127.0.0.1]:45246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r3vy3-0001DN-BC for submit@debbugs.gnu.org; Fri, 17 Nov 2023 05:20:55 -0500 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:60486) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r3vxp-0001A2-Ro for 67237@debbugs.gnu.org; Fri, 17 Nov 2023 05:20:42 -0500 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-40859dee28cso14857285e9.0 for <67237@debbugs.gnu.org>; Fri, 17 Nov 2023 02:20:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700216436; x=1700821236; 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=qgXU8laEGsHucdDQx1JPnTa3Iih/hYb1Xqbe80EQKAI=; b=iVRVZdQ9Xh+59QtRyTuqwS5U4fLugly+RCL9vnlDXVlU+eEk0RwHSy2TRWXK9z0vy9 fUvGXOmxN6x8ZPrZJj33zGScos31A6XlK9xPYR3zd5ZURM+tAh4Ik6wqJwtza+YwYJJt L3BE6emPsNs18SQREF0XY4ak5tKxUpIrldzz/KhDiTtZ+PsKa2fcWuF7MSvZV/Ps7k4O L6pZKviHTG5WzfYbH6vnWxyHjylCjaAzwQD9EUg9aoM09YeSPCBeNSvoOLWBByydmnLH 9LUd7SyjO1dUafHl6EYY9YJlN9F9e/6kAhxV/rOAI6EXl65HtJJlo6mkUdi0pRbSP8Qn bRFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700216436; x=1700821236; 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=qgXU8laEGsHucdDQx1JPnTa3Iih/hYb1Xqbe80EQKAI=; b=gqTZ5kDC0z7orZTlkBWgbC80Ay54K026aPwkNDMafhMx3PTfAUY3ZsqQ5235pTXVwK bHk2cK2qvTgG7stk6IuHfIynQHnf5rBPktLV+dakMiG4bvsdFVDiQXYTtzXJHcCYjwr4 9DbbIk1OJCdPHAWGdD4EpIhus+JyUHGZ73MRgTsr0ES08430cKyTE6aQATe6YhhhKh4X WHtrD3fsbuJ1nX1HTvcfAjrNPu8JBXnqQQwnOaPLvycxbcZDLtejTbRuut8UOEIAgZ6l /bLtEXelABuKFg7eosMcOkx1FYc72ilWs1m4n4lNIo4cgtWGWcbetkRmGHTnaV1COi7U vPAg== X-Gm-Message-State: AOJu0YxzvANSiRti1AnFRAY4ZZcWLB2+3RwTzQvYIRXEyGlBwYJBJXoX DNN6vVNjbZOKNxvZcsrS0gJktwGRZZa2uw== X-Google-Smtp-Source: AGHT+IE8RzWxDB84KRbUzSlxWPF3B94P/fpKFe326TTToexBV2T20pbh4670w4esFSTjsTHYuLL8VQ== X-Received: by 2002:a05:600c:1ca5:b0:408:5919:5f97 with SMTP id k37-20020a05600c1ca500b0040859195f97mr14613776wms.25.1700216435923; Fri, 17 Nov 2023 02:20:35 -0800 (PST) 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 t4-20020a5d4604000000b0032fbd0c7d04sm1858856wrq.55.2023.11.17.02.20.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 02:20:35 -0800 (PST) From: Sharlatan Hellseher Date: Fri, 17 Nov 2023 12:16:20 +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/astronomy.scm (python-stsci-stimage): Enable tests. [arguments]{phases}: Add custom 'check phase. [native-inputs]: Add python-waf and indent list. Change-Id: Ifceace1d89aff97e938c4fb95f33525477499949 --- gnu/packages/astronomy.scm | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index bf419ae526..c063285b52 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -2695,11 +2695,23 @@ (define-public python-stsci-stimage (build-system pyproject-build-system) (arguments (list - ;; XXX: Fix failing tests. There are errors to load test files. - #:tests? #f)) + #:phases + #~(modify-phases %standard-phases + ;; Test steps are taken from GitHub Actions. + ;; See https://github.com/spacetelescope/stsci.stimage/issues/27 + (replace 'check + (lambda _ + (copy-file (string-append + #$(this-package-native-input "python-waf") "/bin/waf") + "waf") + (invoke "python" "waf" "configure" "build" "do_tests")))))) (propagated-inputs (list python-numpy)) - (native-inputs (list python-codecov python-pytest python-pytest-cov - python-setuptools-scm)) + (native-inputs + (list python-codecov + python-pytest + python-pytest-cov + python-setuptools-scm + python-waf)) (home-page "https://stscistimage.readthedocs.io/en/latest/") (synopsis "STScI image processing") (description "This package provides an astronomical Python package with