From patchwork Tue May 16 23:23:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 50070 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 E3F9027BBEB; Wed, 17 May 2023 00:26:18 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,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 DC6D127BBE2 for ; Wed, 17 May 2023 00:26:17 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pz42X-0005Nj-LX; Tue, 16 May 2023 19:25:09 -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 1pz42V-0005Li-C4 for guix-patches@gnu.org; Tue, 16 May 2023 19:25:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pz42V-0002Re-4M for guix-patches@gnu.org; Tue, 16 May 2023 19:25:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pz42T-0004IX-W9 for guix-patches@gnu.org; Tue, 16 May 2023 19:25:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63542] [PATCH 11/19] gnu: python-astropy-healpix: Use Gexp. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 16 May 2023 23:25:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63542 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63542@debbugs.gnu.org Cc: Sharlatan Hellseher Received: via spool by 63542-submit@debbugs.gnu.org id=B63542.168427944916326 (code B ref 63542); Tue, 16 May 2023 23:25:05 +0000 Received: (at 63542) by debbugs.gnu.org; 16 May 2023 23:24:09 +0000 Received: from localhost ([127.0.0.1]:48278 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pz41Y-0004F9-Im for submit@debbugs.gnu.org; Tue, 16 May 2023 19:24:08 -0400 Received: from mail-wr1-f52.google.com ([209.85.221.52]:53568) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pz41R-0004Bf-G4 for 63542@debbugs.gnu.org; Tue, 16 May 2023 19:24:02 -0400 Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-305f0491e62so36584f8f.3 for <63542@debbugs.gnu.org>; Tue, 16 May 2023 16:24:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684279436; x=1686871436; 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=dWGpuG6ArQMh7W9ic4zSl3dE0eEWtjQOBmNOTd1xiBc=; b=oN21INAlEKIyUvgrkCudmmg4EnH2NK4842vzgIQQ4C6Q+uaVYguTLB1Q/QCajKurpb UqCC64t6PX2jAhO9NX8zaTz1OgCcdrJmShK0KbTnFISLMTLj8EuT0GeRqjWUPRbYKcvU tb0UUDtjz8sFyMPlmQ6g/BPqiXuvbYZNcTGcNvHNn2eOFrKtoWaTjVNolpMBptjNe/nz 6EWc6iN8o+wm5oNfRQFSQAwbu6zHyBc22/+3IK7qH8KYUzIhUgfVke6tOUGXYUE+aUN6 A6nqzWwAoVkwGg8PlOsqBREAdOOjwLDPDlOcMwZdkAJ2VJxjYTLRt8L0bwi49taewC8v W84g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684279436; x=1686871436; 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=dWGpuG6ArQMh7W9ic4zSl3dE0eEWtjQOBmNOTd1xiBc=; b=UiX51Ry2ygd2XFPQhqvctAC7IZDMQJ+9QEdsDbGuCRpFglcX4z6WEesEQRDpNthBDJ /GfynevL9Al5x6GJrWsYcjBERO9TxEu8zElQfguAU7szdlr9yaEiO1rv4sXM7a3Ooi0+ EV8I2Fkkt6UwnSUI+bE7Iuq1DAqfFKqxFV15vq69+o1bzXTjV6R0rQiwxW2ZyTdLjUvF tOoTEz8SpURS6IC1IhnD+FpOU2cFB1IwwCzmwIlp1Bvsgdbv0p74+RYSOyQJuY+ebS/V KUF2pXLowno8zNcy5ijudaOeHil+jmkTK6BU0tlaa1lRRTXo0xVckPrGjF+LzvFJZO1L 1BVQ== X-Gm-Message-State: AC+VfDyad4vL8hm3iYCQZfTM0TP6YFAkJejGkA/b19HZgosVDZwmYdGY RUMNtUWui9OjJGzevuvfEodvL6EWeoA= X-Google-Smtp-Source: ACHHUZ6byrLIiR+WP1nT37TCQ0HxghT28T8clGqDM1ggPS+zZtKZS8rW0S+9phTigDK7+kZDZxuhZg== X-Received: by 2002:adf:d84c:0:b0:306:32be:f0f8 with SMTP id k12-20020adfd84c000000b0030632bef0f8mr31007759wrl.20.1684279435854; Tue, 16 May 2023 16:23:55 -0700 (PDT) Received: from guxtil.incerto.xyz (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113]) by smtp.gmail.com with ESMTPSA id n10-20020a5d67ca000000b0030796e103a1sm949609wrw.5.2023.05.16.16.23.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 May 2023 16:23:55 -0700 (PDT) From: Sharlatan Hellseher Date: Wed, 17 May 2023 00:23:40 +0100 Message-Id: X-Mailer: git-send-email 2.39.2 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-astropy-healpix): Simplify package by using Gexp. [build-system]: Shift to pyproject-build-system. [arguments]{phases}: Shift to use standard check phase. --- gnu/packages/astronomy.scm | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 25b372b06d..be4961b49e 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -1243,23 +1243,19 @@ (define-public python-astropy-healpix (uri (pypi-uri "astropy_healpix" version)) (sha256 (base32 "1n1svmd41iv944zf4anbnsigd47zr4dfjf49vrc7m6928gmq9hw8")))) - (build-system python-build-system) + (build-system pyproject-build-system) (arguments - `(#:phases - (modify-phases %standard-phases - ;; This file is opened in both install and check phases. - (add-before 'install 'writable-compiler - (lambda _ (make-file-writable "astropy_healpix/_compiler.c"))) - (add-before 'check 'writable-compiler - (lambda _ (make-file-writable "astropy_healpix/_compiler.c"))) - (replace 'check - (lambda* (#:key inputs outputs tests? #:allow-other-keys) - (when tests? - (add-installed-pythonpath inputs outputs) - ;; Extensions have to be rebuilt before running the tests. - (invoke "python" "setup.py" "build_ext" "--inplace") - (invoke "python" "-m" "pytest" - "--pyargs" "astropy_healpix"))))))) + (list + #:phases + #~(modify-phases %standard-phases + ;; This file is opened in both install and check phases. + (add-before 'install 'writable-compiler + (lambda _ (make-file-writable "astropy_healpix/_compiler.c"))) + (add-before 'check 'prepare-test-environment + (lambda _ + ;; Extensions have to be rebuilt before running the tests. + (invoke "python" "setup.py" "build_ext" "--inplace") + (make-file-writable "astropy_healpix/_compiler.c")))))) (native-inputs (list python-extension-helpers python-hypothesis