From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id GJT8M3qHbmSKzgAASxT56A (envelope-from ) for ; Wed, 24 May 2023 23:54:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 2JEMNHqHbmS1XQEA9RJhRA (envelope-from ) for ; Wed, 24 May 2023 23:54:02 +0200 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 95032541 for ; Wed, 24 May 2023 23:54:02 +0200 (CEST) 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 Content-Transfer-Encoding: 8bit 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1684965242; a=rsa-sha256; cv=none; b=qXSI8ncQej5rwQRWeoZpIO9ZGjmty+WAyFbAgE4clkGd1ehlAssTfsX3HMS2IWES87wogd D7Xz0uqG675wrNqHoXDLv/cQgjtRDBGu1NoRUYDcg3WXNJTVnkot3mg1k5QsvZmSVUj052 M7krUaMfJMD7zt3o1LEkfv70OnuZh4lp9Ujpbbo7jZVOFlDPvgdHTq6rQPmj+MF41FqU0r sKMVhqq/wtyP26730DNvEeX1u+bduxPr7pmtLy+WnS/u93z0d7d/zAXTKQDXMx6z2zUHuY gXbhC5ceF+a+ucMYCJaP6jUXw5OXzq4xNhAuWTymz5pjma9DTtLmW/RpShTcCQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=dMz37c98; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1684965242; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Z1iX9JxwBhNVOTm9+c1lh2BoagXEHQqc9x3IKSI+atk=; b=iYReQnGpLJ8Rxe/MvNu9hvxg1IcPYrVbSaM79z4MMx4VMMYF4w0mpl87fd7oiR6cOGelV4 oF0ZFajGNkJF4pqpGT4LYsM5Wu8COX1jjB3xlHk3kSjqZ+S5wKyIlF5pBudAow7wrrKTlV 6K1twsM/ugcqRPSI06E2EKvzN4GAObsj9jtkF+FUNtj67CyZnpLhXkPw/cCojjYvIRSkBf uJPrcnNpu8PAMrYWG2p3Drcr1EI3q0pBvhyVuJlb7KRY2Ye38iKpf0BDFjKUnM7OWeF5yS nqhbDMZE/1+spo8yasRn1mBMqJZDGhvy/dSslkFmPOphGNMa7lueAoc7Bp3B6A== X-Migadu-Spam-Score: 1.39 X-Spam-Score: 1.39 X-Migadu-Queue-Id: 95032541 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=dMz37c98; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-TUID: N3aZ5lISZzL/ * 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 -- 2.39.2