From patchwork Wed May 24 21:51:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 50300 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 6C45D27BBE9; Wed, 24 May 2023 22:54:04 +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=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 A5DB827BBE2 for ; Wed, 24 May 2023 22:54:02 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q1wPv-0006jv-2J; Wed, 24 May 2023 17:53:11 -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 1q1wPr-0006gO-SQ for guix-patches@gnu.org; Wed, 24 May 2023 17:53: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 1q1wPq-0005OT-Jp for guix-patches@gnu.org; Wed, 24 May 2023 17:53:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q1wPq-0002Uc-1Y for guix-patches@gnu.org; Wed, 24 May 2023 17:53:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63542] [PATCH v2 11/20] gnu: python-astropy-healpix: Use Gexp. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 24 May 2023 21:53:06 +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.16849651419406 (code B ref 63542); Wed, 24 May 2023 21:53:06 +0000 Received: (at 63542) by debbugs.gnu.org; 24 May 2023 21:52:21 +0000 Received: from localhost ([127.0.0.1]:45337 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q1wP7-0002RY-4t for submit@debbugs.gnu.org; Wed, 24 May 2023 17:52:21 -0400 Received: from mail-wr1-f51.google.com ([209.85.221.51]:54568) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q1wOu-0002O9-Fq for 63542@debbugs.gnu.org; Wed, 24 May 2023 17:52:09 -0400 Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-3093eb8cd1fso968103f8f.1 for <63542@debbugs.gnu.org>; Wed, 24 May 2023 14:52:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684965123; x=1687557123; 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=Z1iX9JxwBhNVOTm9+c1lh2BoagXEHQqc9x3IKSI+atk=; b=dMz37c98oFI8VVlitgpwdR0/aY3nvgEASxkgE77X3yJLU+M/0hsLmppOzXlQrJHHh9 qwEzVbPxx+M+TD8l25uFp3YaTY+/y/gJ4+VXoT0CG6gu4lgJmryEaV3gb0MVns/D969t klcgCZuiCTWSyBnyevHc3lSCvpgeSdBYnVwHhVpD7otrfCH4rf1IViTYqjgO1zln+wwt CKwM2CuE4QkbisSN12nZY4+wsQHQJZwk/dg/0a9yNrk/UEB8PdlOeRQDb786dGIVk4Xu RHTG7/CMx7ER17QqSkFApcZ/uXT0mYL54p1A9yBGobaFW0Vm1FsvORFv4sSNSvv2FZwp 6LKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684965123; x=1687557123; 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=Z1iX9JxwBhNVOTm9+c1lh2BoagXEHQqc9x3IKSI+atk=; b=eud07G5X/5qALsc4IbNPxUSM79Qop2B6E1d3Qk5cZvAGNmpviL8Y1+14UCjv3Ml7qa pW8W1pcR37mB6kyr5wnSyfwZym50/jkD+h+KysjzTrg1/kiFNtjFxte6b466yGw5u8Rm +cmKEUyLiq14ZGuk9cdYzmZowCvH/przReA8uy3+9hicq+My2KWEHtHpSA0uBLC33PQb dBAHP/blfHVudWxns6mPVE1oCqZ1stc4qfaZIdVt7gke8g3uU9tq0yKvUzD/BGo22PJp Uhj0A0McvxN0XjwDjV4Q9kOSJjK5lI76JDFL5pGOz1vK7iebNGqMrZ0/i4ZFS3fkvbSN syWA== X-Gm-Message-State: AC+VfDzQhLFczROSQutXwKjjo//nCd7iDcTx6rmIxzI6Y6xAymnFn6Cb 3xFFIeT0I2yb8puwHdSVcYtxJwLPOgY= X-Google-Smtp-Source: ACHHUZ6exK2Eu+63b3d8b4o1bAI+504a9e3T/GsUqRmNuTU4qW6Ru3gPf0HWBI6Ja6rixYIJGj/fJg== X-Received: by 2002:adf:dd89:0:b0:307:9a49:da89 with SMTP id x9-20020adfdd89000000b003079a49da89mr760839wrl.38.1684965122753; Wed, 24 May 2023 14:52:02 -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 c13-20020a056000104d00b0030632833e74sm15609806wrx.11.2023.05.24.14.52.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 May 2023 14:52:02 -0700 (PDT) From: Sharlatan Hellseher Date: Wed, 24 May 2023 22:51:45 +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 c72be7b30b..c8f3a8e965 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