[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#67915] [PATCH 32/32] gnu: python-regions: Use G-expressions.
From: |
Sharlatan Hellseher |
Subject: |
[bug#67915] [PATCH 32/32] gnu: python-regions: Use G-expressions. |
Date: |
Wed, 20 Dec 2023 00:53:39 +0000 |
* 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
- [bug#67915] [PATCH 13/32] gnu: python-jplephem: Update to 2.21., (continued)
- [bug#67915] [PATCH 13/32] gnu: python-jplephem: Update to 2.21., Sharlatan Hellseher, 2023/12/19
- [bug#67915] [PATCH 12/32] gnu: python-gwcs: Update to 0.20.0., Sharlatan Hellseher, 2023/12/19
- [bug#67915] [PATCH 22/32] gnu: python-spherical-geometry: Update to 1.3.1., Sharlatan Hellseher, 2023/12/19
- [bug#67915] [PATCH 17/32] gnu: python-pynbody: Update to 1.5.2., Sharlatan Hellseher, 2023/12/19
- [bug#67915] [PATCH 28/32] gnu: python-synphot: Adjust package style., Sharlatan Hellseher, 2023/12/19
- [bug#67915] [PATCH 29/32] gnu: python-tweakwcs: Update to 0.8.5., Sharlatan Hellseher, 2023/12/19
- [bug#67915] [PATCH 09/32] gnu: python-crds: Update to 11.17.13., Sharlatan Hellseher, 2023/12/19
- [bug#67915] [PATCH 11/32] gnu: python-drms: Update to 0.7.0., Sharlatan Hellseher, 2023/12/19
- [bug#67915] [PATCH 21/32] gnu: python-spectral-cube: Update to 0.6.5., Sharlatan Hellseher, 2023/12/19
- [bug#67915] [PATCH 25/32] gnu: python-stsci-imagestats: Enable tests, Sharlatan Hellseher, 2023/12/19
- [bug#67915] [PATCH 32/32] gnu: python-regions: Use G-expressions.,
Sharlatan Hellseher <=
- [bug#67915] [PATCH 19/32] gnu: python-regions: Update to 0.8., Sharlatan Hellseher, 2023/12/19
- [bug#67915] [PATCH 20/32] gnu: python-reproject: Update to 0.13.0., Sharlatan Hellseher, 2023/12/19
- [bug#67915] [PATCH 16/32] gnu: python-photutils: Update to 1.10.0., Sharlatan Hellseher, 2023/12/19
- [bug#67915] [PATCH 30/32] gnu: splash: Update to 3.10.1., Sharlatan Hellseher, 2023/12/19
- [bug#67915] [PATCH 03/32] gnu: calceph: Update to 3.5.4., Sharlatan Hellseher, 2023/12/19
- [bug#67915] [PATCH 14/32] gnu: python-mpl-animators: Update to 1.1.1., Sharlatan Hellseher, 2023/12/19
- [bug#67915] [PATCH 27/32] gnu: python-synphot: Update to 1.3.0., Sharlatan Hellseher, 2023/12/19
- [bug#67915] [PATCH 08/32] gnu: python-astropy-healpix: Update to 1.0.2., Sharlatan Hellseher, 2023/12/19
- [bug#67915] [PATCH 04/32] gnu: cfitsio: Update to 4.3.1., Sharlatan Hellseher, 2023/12/19
- [bug#67915] [PATCH 15/32] gnu: julia-fitsio: Update to 0.17.1., Sharlatan Hellseher, 2023/12/19