[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#74497] [PATCH 09/46] gnu: Add python-spisea.
From: |
Sharlatan Hellseher |
Subject: |
[bug#74497] [PATCH 09/46] gnu: Add python-spisea. |
Date: |
Sat, 23 Nov 2024 19:50:56 +0000 |
* gnu/packages/astronomy.scm (python-spisea): New variable.
Change-Id: Iecf0f7970cb62b8512eb254d3525a34fc59521be
---
gnu/packages/astronomy.scm | 68 ++++++++++++++++++++++++++++++++++++++
1 file changed, 68 insertions(+)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 75f13a4bf6..74e57c3ef7 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -4914,6 +4914,74 @@ (define-public python-spherical-geometry
;; QD_LIBRARY_LICENSE.rst for bandeled QD source
(license license:bsd-3)))
+(define-public python-spisea
+ (package
+ (name "python-spisea")
+ (version "2.1.11")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/astropy/SPISEA")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1xgmbg1c0lijvbsfiicjl2r4y7prm47qnmj86w69wa8xxsz7n2ph"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ ;; Tests require additinal data, see
+ ;; <https://spisea.readthedocs.io/en/latest/getting_started.html>.
+ #:tests? #f
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'preparations
+ (lambda _
+ ;; Tests and sanity check are failed with ImportError: cannot
+ ;; import name 'update_default_config' from
+ ;; 'astropy.config.configuration'.
+ (delete-file "spisea/_astropy_init.py")
+ (with-output-to-file "spisea/__init__.py"
+ (lambda _
+ (display
+ (string-append "__version__ = \""
+ #$(package-version this-package)
+ "\""))))
+ (substitute* "setup.cfg"
+ (("astropy-package-template-example = .*") ""))
+ ;; The version could not be determined from git checkout.
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
+ (native-inputs
+ (list python-cython
+ python-extension-helpers
+ python-setuptools
+ python-setuptools-scm
+ python-wheel))
+ (propagated-inputs
+ (list python-astropy
+ python-matplotlib
+ python-numpy
+ python-pysynphot
+ python-scipy))
+ (home-page "https://spisea.readthedocs.io/en/stable/index.html")
+ (synopsis "Stellar Population Synthesis Modeling")
+ (description
+ "SPISEA is an python package that generates single-age,
+single-metallicity populations (i.e. star clusters). It gives the user control
+over many parameters:
+
+@itemize
+@item cluster characteristics (age, metallicity, mass, distance)
+@item total extinction, differential extinction, and extinction law
+@item stellar evolution and atmosphere models
+@item stellar multiplicity and Initial Mass Function
+@item initial-Final Mass Relation
+@item photometric filters
+@end itemize")
+ ;; Licensed under a 3-clause BSD style license - see LICENSE.rst
+ ;; spisea/_astropy_init.py:
+ (license (list license:gpl3+ license:bsd-3))))
+
(define-public python-statmorph
(package
(name "python-statmorph")
--
2.46.0
- [bug#74497] [PATCH 00/46] Astro update 2024/11., Sharlatan Hellseher, 2024/11/23
- [bug#74497] [PATCH 02/46] gnu: Add julia-astroangles., Sharlatan Hellseher, 2024/11/23
- [bug#74497] [PATCH 03/46] gnu: Add python-kalepy., Sharlatan Hellseher, 2024/11/23
- [bug#74497] [PATCH 04/46] gnu: Add python-george., Sharlatan Hellseher, 2024/11/23
- [bug#74497] [PATCH 05/46] gnu: Add python-hasasia., Sharlatan Hellseher, 2024/11/23
- [bug#74497] [PATCH 10/46] gnu: gpredict: Update commentary note., Sharlatan Hellseher, 2024/11/23
- [bug#74497] [PATCH 01/46] gnu: Add cdf., Sharlatan Hellseher, 2024/11/23
- [bug#74497] [PATCH 06/46] gnu: Add python-cosmopy., Sharlatan Hellseher, 2024/11/23
- [bug#74497] [PATCH 11/46] gnu: healpix-source: Update commentary note., Sharlatan Hellseher, 2024/11/23
- [bug#74497] [PATCH 09/46] gnu: Add python-spisea.,
Sharlatan Hellseher <=
- [bug#74497] [PATCH 07/46] gnu: Add python-holodeck., Sharlatan Hellseher, 2024/11/23
- [bug#74497] [PATCH 14/46] gnu: python-asdf-astropy: Update to 0.7.0., Sharlatan Hellseher, 2024/11/23
- [bug#74497] [PATCH 08/46] gnu: Add python-vispy., Sharlatan Hellseher, 2024/11/23
- [bug#74497] [PATCH 16/46] gnu: python-astropy: Update to 6.1.6., Sharlatan Hellseher, 2024/11/23
- [bug#74497] [PATCH 18/46] gnu: python-crds: Update to 12.0.6., Sharlatan Hellseher, 2024/11/23
- [bug#74497] [PATCH 19/46] gnu: python-drizzle: Update to 2.0.0., Sharlatan Hellseher, 2024/11/23
- [bug#74497] [PATCH 13/46] gnu: libpasastro: Update to 1.4.3., Sharlatan Hellseher, 2024/11/23
- [bug#74497] [PATCH 17/46] gnu: python-bayesicfitting: Update to 3.2.2., Sharlatan Hellseher, 2024/11/23
- [bug#74497] [PATCH 24/46] gnu: python-astrodendro: Update to 0.3.1., Sharlatan Hellseher, 2024/11/23
- [bug#74497] [PATCH 15/46] gnu: python-astropy-iers-data: Update to 0.2024.11.18.0.35.2., Sharlatan Hellseher, 2024/11/23