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 AKU4OxkRZGT0agEASxT56A (envelope-from ) for ; Wed, 17 May 2023 01:26:18 +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 aGwOOxkRZGSkcgEA9RJhRA (envelope-from ) for ; Wed, 17 May 2023 01:26:17 +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 D3F3086C4 for ; Wed, 17 May 2023 01:26:17 +0200 (CEST) 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 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=1684279577; a=rsa-sha256; cv=none; b=cityAOTkevCpRZJVL2mTLfVnEkPBbcRZ9vIrQCW6Iud6sOaU3oGgItmo040/bXjw+pN8/H c1ULGaGfRD/k6rjxvZBtEbd9zf+c5s5ybVh/C+q3/FTBxtH3m3nnvRlPOf+paojFC8scCT XB5iNlCFWa60/veSe1klZtZFityKKcFb4twqjNYbMzHm7LQY8n0/QycTkEPKVrwBCcI8js +lGkAWXcJWp2HIoyVvkzCZtOX/eUujvbSKS353b3QFLfYMNveD73ku5U+8rmpKHLOlsd2+ AHzTW5enN/zJ5wmy+rjHvue+CrvTnxhJLztbBMIbdC034CmE5Mv2CCJB317fCQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=oN21INAl; 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=1684279577; 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=dWGpuG6ArQMh7W9ic4zSl3dE0eEWtjQOBmNOTd1xiBc=; b=MYtTBkiOGWSAA/OtWs8GFuSNXQRGqt+kUtJoisHUWTuCwI4uwlEIdbZFOCVTpi1/Zpx2Nk HxqtGfVOtjaDvoWbMsMdt7ozLqnbrrwuWETCryU7lTKlbcIx5zxYuiov9Q5lLoRSoXI3Cf LIZwFM59CFIf0gL7XfBVkN/XMXFopMmabTaYEpuI0P38Wy1jBKj6odaBToDgz0D5llRWDv 0Wfdz3O2k8HUocMy0t7yHbidstLDs6xmAoTl13mUSlW8C93+euZ6R+QA8c2d5z9D9T7DR7 HNv9o0dmcqNjXAp9l+KwUN/IXT8YwfagEgVFAeRGHHvr7RAR6WsRAdllpsCrCg== X-Migadu-Spam-Score: 1.69 X-Spam-Score: 1.69 X-Migadu-Queue-Id: D3F3086C4 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=oN21INAl; 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: lcJHKlS/kXjC * 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 -- 2.39.2