summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2026-01-09 14:57:41 +0000
committerRutherther <rutherther@ditigal.xyz>2026-01-25 21:22:26 +0100
commit592b53a573bce9455e503f43e79c662b4d265e4e (patch)
tree87a49b24c31e73d87ad08e4d93ca1c326884a748
parenta8a5a87a02688186144397c02cf833c21f0246a4 (diff)
gnu: python-petrofit: Reduce closure size.
* gnu/packages/astronomy.scm (python-petrofit): [phases]{relax-requirements}: New phase. [propagated-inputs]: Remove jupyter, python-cython, python-ipywidgets, and python-pytest-astropy-header. [native-inputs]: Remove python-pytest-xdist, python-setuptools, and python-wheel; add python-cython and python-pytest-astropy-header. Change-Id: Id5e79feb6f47e9b6d00568cf1ec54dc0c18fd52b Signed-off-by: Rutherther <rutherther@ditigal.xyz>
-rw-r--r--gnu/packages/astronomy.scm27
1 files changed, 14 insertions, 13 deletions
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index f8ab627ec5d..8739ae1f4b1 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -6591,33 +6591,34 @@ Astronomy.")
(build-system pyproject-build-system)
(arguments
(list
- #:test-flags
- #~(list "--numprocesses" (number->string (min 8 (parallel-job-count))))
+ ;; tests: 28 passed, 2033 warnings
#:phases
#~(modify-phases %standard-phases
- (add-after 'unpack 'set-version
+ (add-after 'unpack 'relax-requirements
+ (lambda _
+ ;; XXX: I'm not sure we need to propagate Jupyter requirements.
+ (substitute* "pyproject.toml"
+ (("'ipywidgets',") "")
+ (("'jupyter',") "")
+ (("'notebook',") ""))))
+ (add-before 'build 'set-version
(lambda _
(setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
(native-inputs
- (list python-hatch-vcs
+ (list python-cython
+ python-hatch-vcs
python-hatchling
python-pytest
+ python-pytest-astropy-header
python-pytest-randomly
- python-pytest-xdist
- python-setuptools
- python-setuptools-scm
- python-wheel))
+ python-setuptools-scm))
(propagated-inputs
- (list jupyter
- python-astropy
- python-cython
+ (list python-astropy
python-extension-helpers
- python-ipywidgets
python-matplotlib
python-notebook
python-numpy
python-photutils
- python-pytest-astropy-header
python-pyyaml
python-regions
python-scikit-image