[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#63542] [PATCH 11/19] gnu: python-astropy-healpix: Use Gexp.
From: |
Sharlatan Hellseher |
Subject: |
[bug#63542] [PATCH 11/19] gnu: python-astropy-healpix: Use Gexp. |
Date: |
Wed, 17 May 2023 00:23:40 +0100 |
* 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
- [bug#63542] [PATCH 03/19] gnu: python-gwcs: Update to 0.18.3., (continued)
- [bug#63542] [PATCH 03/19] gnu: python-gwcs: Update to 0.18.3., Sharlatan Hellseher, 2023/05/16
- [bug#63542] [PATCH 04/19] gnu: python-sunpy: Update to 4.1.5., Sharlatan Hellseher, 2023/05/16
- [bug#63542] [PATCH 06/19] gnu: python-sgp4: Update to 2.22., Sharlatan Hellseher, 2023/05/16
- [bug#63542] [PATCH 08/19] gnu: python-reproject: Update to 0.10.0., Sharlatan Hellseher, 2023/05/16
- [bug#63542] [PATCH 05/19] gnu: python-spherical-geometry: Add update note., Sharlatan Hellseher, 2023/05/16
- [bug#63542] [PATCH 07/19] gnu: python-ccdproc: Enable tests., Sharlatan Hellseher, 2023/05/16
- [bug#63542] [PATCH 09/19] gnu: python-pyvo: Update to 1.4.1., Sharlatan Hellseher, 2023/05/16
- [bug#63542] [PATCH 19/19] gnu: python-asdf-coordinates-schemas: Update to 0.2.0., Sharlatan Hellseher, 2023/05/16
- [bug#63542] [PATCH 10/19] gnu: python-fitsio: Use Gexp., Sharlatan Hellseher, 2023/05/16
- [bug#63542] [PATCH 11/19] gnu: python-astropy-healpix: Use Gexp.,
Sharlatan Hellseher <=
- [bug#63542] [PATCH 15/19] gnu: python-poppy: Update to 1.1.1., Sharlatan Hellseher, 2023/05/16
- [bug#63542] [PATCH 17/19] gnu: python-ephem: Update to 4.1.4., Sharlatan Hellseher, 2023/05/16
- [bug#63542] [PATCH 18/19] gnu: python-asdf: Update to 2.15.0., Sharlatan Hellseher, 2023/05/16
- [bug#63542] [PATCH 12/19] gnu: python-astroquery: Use Gexp., Sharlatan Hellseher, 2023/05/16
- [bug#63542] [PATCH 13/19] gnu: python-pynbody: Update to 1.3.1, simplify., Sharlatan Hellseher, 2023/05/16
- [bug#63542] [PATCH 16/19] gnu: python-photutils: Update to 1.7.0., Sharlatan Hellseher, 2023/05/16
- [bug#63542] [PATCH 14/19] gnu: python-astral: Update to 3.2., Sharlatan Hellseher, 2023/05/16