[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
32/32: gnu: python-regions: Use G-expressions.
From: |
guix-commits |
Subject: |
32/32: gnu: python-regions: Use G-expressions. |
Date: |
Fri, 12 Jan 2024 16:44:04 -0500 (EST) |
sharlatan pushed a commit to branch master
in repository guix.
commit bfdcf6b36578ac0567f7e06651375d74688d22e5
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Tue Dec 19 19:23:03 2023 +0000
gnu: python-regions: Use G-expressions.
* 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 @@ Virtual observatory (VO) using Python.")
(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
- 14/32: gnu: python-mpl-animators: Update to 1.1.1., (continued)
- 14/32: gnu: python-mpl-animators: Update to 1.1.1., guix-commits, 2024/01/12
- 12/32: gnu: python-gwcs: Update to 0.20.0., guix-commits, 2024/01/12
- 30/32: gnu: splash: Update to 3.10.1., guix-commits, 2024/01/12
- 22/32: gnu: python-spherical-geometry: Update to 1.3.1., guix-commits, 2024/01/12
- 06/32: gnu: phd2: Update to 2.6.12., guix-commits, 2024/01/12
- 15/32: gnu: julia-fitsio: Update to 0.17.1., guix-commits, 2024/01/12
- 28/32: gnu: python-synphot: Adjust package style., guix-commits, 2024/01/12
- 20/32: gnu: python-reproject: Update to 0.13.0., guix-commits, 2024/01/12
- 07/32: gnu: python-asdf-astropy: Update to 0.5.0., guix-commits, 2024/01/12
- 21/32: gnu: python-spectral-cube: Update to 0.6.5., guix-commits, 2024/01/12
- 32/32: gnu: python-regions: Use G-expressions.,
guix-commits <=
- 24/32: gnu: python-stsci-imagestats: Update to 1.8.0., guix-commits, 2024/01/12
- 17/32: gnu: python-pynbody: Update to 1.5.2., guix-commits, 2024/01/12
- 11/32: gnu: python-drms: Update to 0.7.0., guix-commits, 2024/01/12
- 10/32: gnu: python-drizzle: Update to 1.14.4., guix-commits, 2024/01/12
- 31/32: gnu: wcslib: Update to 8.2.2., guix-commits, 2024/01/12
- 16/32: gnu: python-photutils: Update to 1.10.0., guix-commits, 2024/01/12
- 05/32: gnu: libpasastro: Update to 1.4.2., guix-commits, 2024/01/12
- 13/32: gnu: python-jplephem: Update to 2.21., guix-commits, 2024/01/12
- 29/32: gnu: python-tweakwcs: Update to 0.8.5., guix-commits, 2024/01/12
- 18/32: gnu: python-radio-beam: Update to 0.3.7., guix-commits, 2024/01/12