diff options
author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-05-08 22:55:44 +0100 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-05-26 16:15:31 +0100 |
commit | d7cc73543650f6f87429ce850e01a4ef256d3d51 (patch) | |
tree | f8c5c74de18a826422998dbbf56c5a1cbbeed3c6 | |
parent | f439428e98e50e408706b6be9e5e5d62e25ff0a8 (diff) |
gnu: Add python-petrofit.
* gnu/packages/astronomy.scm (python-petrofit): New variable.
Change-Id: Ia59121ecf7700c4e57e844270d43397fbe91b08e
-rw-r--r-- | gnu/packages/astronomy.scm | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index ad01252cf7..fab4bbd9bf 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -4066,6 +4066,63 @@ perform MCMC fitting of radiative models to X-ray, GeV, and TeV spectra using Carlo.") (license license:bsd-3))) +(define-public python-petrofit + (package + (name "python-petrofit") + (version "0.6.0") + (source + (origin + (method git-fetch) ; no tests data in the PyPI tarball + (uri (git-reference + (url "https://github.com/PetroFit/petrofit") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "07dri6r6ws82nn379gqvg899g576n8skhgp5fjg3qq38rp8dgl0k")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + #~(list "--numprocesses" (number->string (min 8 (parallel-job-count)))) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-version + (lambda _ + (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))))) + (native-inputs + (list python-hatch-vcs + python-hatchling + python-pytest + python-pytest-randomly + python-pytest-xdist + python-setuptools + python-setuptools-scm + python-wheel)) + (propagated-inputs + (list jupyter + python-astropy + python-cython + python-extension-helpers + python-ipywidgets + python-matplotlib + python-notebook + python-numpy + python-photutils + python-pytest-astropy-header + python-pyyaml + python-regions + python-scikit-image + python-scikit-learn + python-scipy)) + (home-page "https://github.com/PetroFit/petrofit") + (synopsis "Petrosian properties and fitting galaxy light profiles calculation") + (description + "PetroFit is a package for calculating Petrosian properties, +such as radii and concentration indices, as well as fitting galaxy light +profiles. In particular, PetroFit includes tools for performing accurate +photometry, segmentations, Petrosian profiling, and Sérsic fitting.") + (license license:bsd-3))) + (define-public python-pixell (package (name "python-pixell") |