all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sharlatan Hellseher <sharlatanus@gmail.com>
To: 67915@debbugs.gnu.org
Cc: Sharlatan Hellseher <sharlatanus@gmail.com>,
	Andreas Enge <andreas@enge.fr>,
	Efraim Flashner <efraim@flashner.co.il>,
	Eric Bavier <bavier@posteo.net>
Subject: [bug#67915] [PATCH 32/32] gnu: python-regions: Use G-expressions.
Date: Wed, 20 Dec 2023 00:53:39 +0000	[thread overview]
Message-ID: <9f24041343b305db612d08ba6b7e64b7cc737edf.1703031694.git.sharlatanus@gmail.com> (raw)
In-Reply-To: <cover.1703031693.git.sharlatanus@gmail.com>

* gnu/packages/astronomy.scm (python-regions): Use G-expressions.
[build-system]: Swap to pyproject-build-system.
[arguments]<#:phases>: Remove 'delete-doctest phase. Merge all
(add-before 'check ...) phases into 'prepare-test-environment.

Change-Id: I31dc6a195a6f6f818303d5c0e32799770cd448c8
---
 gnu/packages/astronomy.scm | 27 +++++++++++++--------------
 1 file changed, 13 insertions(+), 14 deletions(-)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 76c60ca0a7..9b842621ee 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -2283,21 +2283,20 @@ (define-public python-regions
        (uri (pypi-uri "regions" version))
        (sha256
         (base32 "09401pz7926zlci7cznd78hmv9947f6jxyy2afqdqc1xaccpzcq2"))))
-    (build-system python-build-system)
+    (build-system pyproject-build-system)
     (arguments
-     `(#:test-target "pytest"
-       #:phases
-       (modify-phases %standard-phases
-         ;; This doctest requires online data.
-         (add-after 'unpack 'delete-doctest
-           (lambda _ (delete-file "docs/masks.rst")))
-         ;; This file is opened in both install and check phases.
-         (add-before 'install 'writable-compiler
-           (lambda _ (make-file-writable "regions/_compiler.c")))
-         (add-before 'check 'writable-compiler
-           (lambda _ (make-file-writable "regions/_compiler.c")))
-         (add-before 'check 'writable-home
-           (lambda _  (setenv "HOME" (getcwd)))))))
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          ;; This file is opened in both install and check phases.
+          ;; XXX: Check if it is still required.
+          (add-before 'install 'writable-compiler
+            (lambda _ (make-file-writable "regions/_compiler.c")))
+          (add-before 'check 'prepare-test-environment
+            (lambda _
+              (setenv "HOME" "/tmp")
+              (make-file-writable "regions/_compiler.c")
+              (invoke "python" "setup.py" "build_ext" "--inplace"))))))
     (propagated-inputs
      (list python-astropy
            python-h5py
-- 
2.41.0





  parent reply	other threads:[~2023-12-19 21:56 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-20  0:29 [bug#67915] [PATCH 00/32] gnu: Astronomy 2023/12 updates Sharlatan Hellseher
2023-12-20  0:53 ` [bug#67915] [PATCH 01/32] gnu: aocommon: Update to 0.0.0-2.9272ea3 Sharlatan Hellseher
2023-12-20  0:53 ` [bug#67915] [PATCH 02/32] gnu: aoflagger: Update to 3.4.0 Sharlatan Hellseher
2023-12-20  0:53 ` [bug#67915] [PATCH 03/32] gnu: calceph: Update to 3.5.4 Sharlatan Hellseher
2023-12-20  0:53 ` [bug#67915] [PATCH 04/32] gnu: cfitsio: Update to 4.3.1 Sharlatan Hellseher
2023-12-20  0:53 ` [bug#67915] [PATCH 05/32] gnu: libpasastro: Update to 1.4.2 Sharlatan Hellseher
2023-12-20  0:53 ` [bug#67915] [PATCH 06/32] gnu: phd2: Update to 2.6.12 Sharlatan Hellseher
2023-12-20  0:53 ` [bug#67915] [PATCH 07/32] gnu: python-asdf-astropy: Update to 0.5.0 Sharlatan Hellseher
2023-12-20  0:53 ` [bug#67915] [PATCH 08/32] gnu: python-astropy-healpix: Update to 1.0.2 Sharlatan Hellseher
2023-12-20  0:53 ` [bug#67915] [PATCH 09/32] gnu: python-crds: Update to 11.17.13 Sharlatan Hellseher
2023-12-20  0:53 ` [bug#67915] [PATCH 10/32] gnu: python-drizzle: Update to 1.14.4 Sharlatan Hellseher
2023-12-20  0:53 ` [bug#67915] [PATCH 11/32] gnu: python-drms: Update to 0.7.0 Sharlatan Hellseher
2023-12-20  0:53 ` [bug#67915] [PATCH 12/32] gnu: python-gwcs: Update to 0.20.0 Sharlatan Hellseher
2023-12-20  0:53 ` [bug#67915] [PATCH 13/32] gnu: python-jplephem: Update to 2.21 Sharlatan Hellseher
2023-12-20  0:53 ` [bug#67915] [PATCH 14/32] gnu: python-mpl-animators: Update to 1.1.1 Sharlatan Hellseher
2023-12-20  0:53 ` [bug#67915] [PATCH 15/32] gnu: julia-fitsio: Update to 0.17.1 Sharlatan Hellseher
2024-01-12 10:31   ` Simon Tournier
2023-12-20  0:53 ` [bug#67915] [PATCH 16/32] gnu: python-photutils: Update to 1.10.0 Sharlatan Hellseher
2023-12-20  0:53 ` [bug#67915] [PATCH 17/32] gnu: python-pynbody: Update to 1.5.2 Sharlatan Hellseher
2023-12-20  0:53 ` [bug#67915] [PATCH 18/32] gnu: python-radio-beam: Update to 0.3.7 Sharlatan Hellseher
2023-12-20  0:53 ` [bug#67915] [PATCH 19/32] gnu: python-regions: Update to 0.8 Sharlatan Hellseher
2023-12-20  0:53 ` [bug#67915] [PATCH 20/32] gnu: python-reproject: Update to 0.13.0 Sharlatan Hellseher
2023-12-20  0:53 ` [bug#67915] [PATCH 21/32] gnu: python-spectral-cube: Update to 0.6.5 Sharlatan Hellseher
2023-12-20  0:53 ` [bug#67915] [PATCH 22/32] gnu: python-spherical-geometry: Update to 1.3.1 Sharlatan Hellseher
2023-12-20  0:53 ` [bug#67915] [PATCH 23/32] gnu: python-stdatamodels: Update to 1.9.0 Sharlatan Hellseher
2023-12-20  0:53 ` [bug#67915] [PATCH 24/32] gnu: python-stsci-imagestats: Update to 1.8.0 Sharlatan Hellseher
2023-12-20  0:53 ` [bug#67915] [PATCH 25/32] gnu: python-stsci-imagestats: Enable tests Sharlatan Hellseher
2023-12-20  0:53 ` [bug#67915] [PATCH 26/32] gnu: python-stsynphot: Update to 1.3.0 Sharlatan Hellseher
2023-12-20  0:53 ` [bug#67915] [PATCH 27/32] gnu: python-synphot: " Sharlatan Hellseher
2023-12-20  0:53 ` [bug#67915] [PATCH 28/32] gnu: python-synphot: Adjust package style Sharlatan Hellseher
2023-12-20  0:53 ` [bug#67915] [PATCH 29/32] gnu: python-tweakwcs: Update to 0.8.5 Sharlatan Hellseher
2023-12-20  0:53 ` [bug#67915] [PATCH 30/32] gnu: splash: Update to 3.10.1 Sharlatan Hellseher
2023-12-20  0:53 ` [bug#67915] [PATCH 31/32] gnu: wcslib: Update to 8.2.2 Sharlatan Hellseher
2023-12-20  0:53 ` Sharlatan Hellseher [this message]
2024-01-01 11:58 ` [bug#67915] Sharlatan Hellseher
2024-01-09 18:20   ` [bug#67915] Sharlatan Hellseher
2024-01-10  9:28     ` [bug#67915] Ricardo Wurmus
2024-01-11 16:42       ` [bug#67915] Sharlatan Hellseher
2024-01-11 14:38         ` [bug#67915] Ricardo Wurmus
2024-01-12 21:51 ` bug#67915: Sharlatan Hellseher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9f24041343b305db612d08ba6b7e64b7cc737edf.1703031694.git.sharlatanus@gmail.com \
    --to=sharlatanus@gmail.com \
    --cc=67915@debbugs.gnu.org \
    --cc=andreas@enge.fr \
    --cc=bavier@posteo.net \
    --cc=efraim@flashner.co.il \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.