[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#70489] [PATCH 35/47] gnu: python-regions: Update to 0.9.
From: |
Sharlatan Hellseher |
Subject: |
[bug#70489] [PATCH 35/47] gnu: python-regions: Update to 0.9. |
Date: |
Sun, 21 Apr 2024 00:22:24 +0100 |
* gnu/packages/astronomy.scm (python-regions): Update to 0.9.
[arguments] <#:phases>: Add 'create-setup.py phase, rename
'prepare-test-environment to 'build-extensions to reflect purpose.
[native-inputs]: Remove python-cython; add python-cython-3.
Change-Id: Ia634f93336eb7658c4eaeeb7ddb6539c2e0adee3
---
gnu/packages/astronomy.scm | 21 ++++++++++++++-------
1 file changed, 14 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 10eb640e56..fe1bc54157 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -2667,13 +2667,13 @@ (define-public python-pyvo
(define-public python-regions
(package
(name "python-regions")
- (version "0.8")
+ (version "0.9")
(source
(origin
(method url-fetch)
(uri (pypi-uri "regions" version))
(sha256
- (base32 "09401pz7926zlci7cznd78hmv9947f6jxyy2afqdqc1xaccpzcq2"))))
+ (base32 "0kvfdzqry3vcvphd7ldmppbgn3ab97hbfzwxfrlxls92yi41h3i6"))))
(build-system pyproject-build-system)
(arguments
(list
@@ -2681,14 +2681,21 @@ (define-public python-regions
#~(list "-n" "auto")
#:phases
#~(modify-phases %standard-phases
+ ;; setup.py was removed in 84c80a280431adda00641cda5264c7de18b43b2f
+ ;; for some unknown reason, which caused the package to fail to
+ ;; build. It is being recreated based on that commit.
+ (add-after 'unpack 'create-setup.py
+ (lambda _
+ (call-with-output-file "setup.py"
+ (lambda (port)
+ (format port "from setuptools import setup
+from extension_helpers import get_extensions
+setup(ext_modules=get_extensions())")))))
;; 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
+ (add-before 'check 'build-extensions
(lambda _
- (setenv "HOME" "/tmp")
- (make-file-writable "regions/_compiler.c")
(invoke "python" "setup.py" "build_ext" "--inplace"))))))
(propagated-inputs
(list python-astropy
@@ -2698,7 +2705,7 @@ (define-public python-regions
python-scipy
python-shapely))
(native-inputs
- (list python-cython
+ (list python-cython-3
python-extension-helpers
python-pytest-arraydiff
python-pytest-astropy
--
2.41.0
- [bug#70489] [PATCH 34/47] gnu: python-rad: Update to 0.19.2., (continued)
- [bug#70489] [PATCH 34/47] gnu: python-rad: Update to 0.19.2., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 30/47] gnu: Add python-assay., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 37/47] gnu: python-casa-formats-io: Update to 0.3.0., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 24/47] gnu: python-tweakwcs: Update to 0.8.7., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 05/47] gnu: python-pytest-socket: Update to 0.7.0., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 26/47] gnu: python-ginga: Set HOME for sanity check., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 25/47] gnu: python-ginga: Update to 5.0.1., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 29/47] gnu: python-bayesicfitting: Update to 3.2.1., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 36/47] gnu: python-roman-datamodels: Update to 0.19.1., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 38/47] gnu: python-specutils: Update to 1.14.0., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 35/47] gnu: python-regions: Update to 0.9.,
Sharlatan Hellseher <=
- [bug#70489] [PATCH 39/47] gnu: python-photutils: Update to 1.12., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 43/47] gnu: python-crds: Update to 11.17.20., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 44/47] gnu: python-stsci-stimage: Update to 0.2.8., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 41/47] gnu: python-reproject: Enable tests., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 40/47] gnu: python-reproject: Update to 0.13.1., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 45/47] gnu: python-stsci-stimage: Adjust test steps., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 47/47] gnu: Add psfex., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 46/47] gnu: Add scamp., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 42/47] gnu: python-asdf: Adjust inputs., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 28/47] gnu: python-bayesicfitting: Refresh package style., Sharlatan Hellseher, 2024/04/20