summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2024-04-17 22:24:02 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2024-04-30 21:36:12 +0100
commitf9bb983d3ecbbf256f8ec785f837ad9cd4a00361 (patch)
treecd48122a2ce46d78723dddf52452c822ed58e015 /gnu
parent48895affab469b7a8df18b247b97ec9816d8d30a (diff)
gnu: python-regions: Update to 0.9.
* 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
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/astronomy.scm21
1 files changed, 14 insertions, 7 deletions
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 41fa870eb09..1ecd3987bb5 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -2667,13 +2667,13 @@ Virtual observatory (VO) using Python.")
2667(define-public python-regions 2667(define-public python-regions
2668 (package 2668 (package
2669 (name "python-regions") 2669 (name "python-regions")
2670 (version "0.8") 2670 (version "0.9")
2671 (source 2671 (source
2672 (origin 2672 (origin
2673 (method url-fetch) 2673 (method url-fetch)
2674 (uri (pypi-uri "regions" version)) 2674 (uri (pypi-uri "regions" version))
2675 (sha256 2675 (sha256
2676 (base32 "09401pz7926zlci7cznd78hmv9947f6jxyy2afqdqc1xaccpzcq2")))) 2676 (base32 "0kvfdzqry3vcvphd7ldmppbgn3ab97hbfzwxfrlxls92yi41h3i6"))))
2677 (build-system pyproject-build-system) 2677 (build-system pyproject-build-system)
2678 (arguments 2678 (arguments
2679 (list 2679 (list
@@ -2681,14 +2681,21 @@ Virtual observatory (VO) using Python.")
2681 #~(list "-n" "auto") 2681 #~(list "-n" "auto")
2682 #:phases 2682 #:phases
2683 #~(modify-phases %standard-phases 2683 #~(modify-phases %standard-phases
2684 ;; setup.py was removed in 84c80a280431adda00641cda5264c7de18b43b2f
2685 ;; for some unknown reason, which caused the package to fail to
2686 ;; build. It is being recreated based on that commit.
2687 (add-after 'unpack 'create-setup.py
2688 (lambda _
2689 (call-with-output-file "setup.py"
2690 (lambda (port)
2691 (format port "from setuptools import setup
2692from extension_helpers import get_extensions
2693setup(ext_modules=get_extensions())")))))
2684 ;; This file is opened in both install and check phases. 2694 ;; This file is opened in both install and check phases.
2685 ;; XXX: Check if it is still required.
2686 (add-before 'install 'writable-compiler 2695 (add-before 'install 'writable-compiler
2687 (lambda _ (make-file-writable "regions/_compiler.c"))) 2696 (lambda _ (make-file-writable "regions/_compiler.c")))
2688 (add-before 'check 'prepare-test-environment 2697 (add-before 'check 'build-extensions
2689 (lambda _ 2698 (lambda _
2690 (setenv "HOME" "/tmp")
2691 (make-file-writable "regions/_compiler.c")
2692 (invoke "python" "setup.py" "build_ext" "--inplace")))))) 2699 (invoke "python" "setup.py" "build_ext" "--inplace"))))))
2693 (propagated-inputs 2700 (propagated-inputs
2694 (list python-astropy 2701 (list python-astropy
@@ -2698,7 +2705,7 @@ Virtual observatory (VO) using Python.")
2698 python-scipy 2705 python-scipy
2699 python-shapely)) 2706 python-shapely))
2700 (native-inputs 2707 (native-inputs
2701 (list python-cython 2708 (list python-cython-3
2702 python-extension-helpers 2709 python-extension-helpers
2703 python-pytest-arraydiff 2710 python-pytest-arraydiff
2704 python-pytest-astropy 2711 python-pytest-astropy