[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#72219] [PATCH 34/34] gnu: Add python-sncosmo.
From: |
Sharlatan Hellseher |
Subject: |
[bug#72219] [PATCH 34/34] gnu: Add python-sncosmo. |
Date: |
Sat, 20 Jul 2024 23:40:57 +0100 |
* gnu/packages/astronomy.scm (python-sncosmo): New variable.
Change-Id: I49b42a89e9bcabda1fa7193e40c5c43fbeaf1613
---
gnu/packages/astronomy.scm | 77 ++++++++++++++++++++++++++++++++++++++
1 file changed, 77 insertions(+)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index df9f50285f..2ee206c766 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -1192,6 +1192,83 @@ (define-public python-glue-core
across many files.")
(license license:bsd-3)))
+(define-public python-sncosmo
+ (package
+ (name "python-sncosmo")
+ (version "2.11.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "sncosmo" version))
+ (sha256
+ (base32 "0nmhrvaw22zxpmykl70a91mc88pxmw0x5fdxjiz3hdzkdbqrg0x9"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ ;; Disable tests requireing remote access to download test data.
+ #~(list
+ "-k" (string-append "not test_megacampsf_bandpass"
+ " and not test_builtins_remote_aa"
+ " and not test_builtins_remote_nm"
+ " and not test_builtins_remote_um"
+ " and not test_builtins_remote_wfc3"
+ " and not test_builtins_megacampsf"
+ " and not test_builtins_timeseries_ascii"
+ " and not test_builtins_timeseries_fits"
+ " and not test_builtins_salt2model"
+ " and not test_builtins_salt3model"
+ " and not test_builtins_2011fe"
+ " and not test_builtins_mlcs2k2"
+ " and not test_builtins_snemo"
+ " and not test_builtins_sugar"
+ " and not test_builtins_magsys_fits"
+ " and not test_builtins_magsys_csp"
+ " and not test_builtins_magsys_ab_b12"
+ " and not test_builtins_magsys_jla"
+ " and not test_csp_magsystem"
+ " and not test_compositemagsystem_band_error"
+ " and not test_G10"
+ " and not test_C11"
+ " and not test_salt2source_timeseries_vs_snfit"
+ " and not test_salt2source_rcov_vs_snfit"
+ " and not test_bandflux"
+ " and not test_bandflux_multi"
+ " and not test_bandflux_zpsys"
+ " and not test_bandfluxcov"
+ " and not test_bandmag"
+ " and not test_sugarsource"))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'relax-requirements
+ (lambda _
+ (substitute* "setup.cfg"
+ ;; pyyaml>=6.0.1
+ (("6.0.1") "6.0"))))
+ (add-before 'check 'prepare-test-environment
+ (lambda _
+ (setenv "HOME" "/tmp")
+ (invoke "python" "setup.py" "build_ext" "--inplace"))))))
+ (propagated-inputs
+ (list python-astropy
+ python-extinction
+ python-looseversion
+ python-numpy
+ python-pyyaml
+ python-scipy))
+ (native-inputs
+ (list ;; python-iminuit ; not packed, optional
+ python-cython
+ python-pytest
+ python-pytest-astropy
+ python-pytest-cov))
+ (home-page "https://sncosmo.readthedocs.org")
+ (synopsis "Package for supernova cosmology based on astropy")
+ (description
+ "SNCosmo is a Python library for supernova cosmology analysis. It aims
+to make such analysis both as flexible and clear as possible.")
+ (license license:bsd-3)))
+
(define-public wcslib
(package
(name "wcslib")
--
2.41.0
- [bug#72219] [PATCH 18/34] gnu: python-pytest-openfiles: Simplify package., (continued)
- [bug#72219] [PATCH 18/34] gnu: python-pytest-openfiles: Simplify package., Sharlatan Hellseher, 2024/07/20
- [bug#72219] [PATCH 01/34] gnu: Add python-pluggy-next., Sharlatan Hellseher, 2024/07/20
- [bug#72219] [PATCH 21/34] gnu: python-stdatamodels: Update to 2.0.0., Sharlatan Hellseher, 2024/07/20
- [bug#72219] [PATCH 11/34] gnu: python-czml3: Update to 1.0.1., Sharlatan Hellseher, 2024/07/20
- [bug#72219] [PATCH 12/34] gnu: python-czml3: Adjust indentation., Sharlatan Hellseher, 2024/07/20
- [bug#72219] [PATCH 17/34] gnu: python-pytest-openfiles: Update to 0.6.0., Sharlatan Hellseher, 2024/07/20
- [bug#72219] [PATCH 19/34] gnu: python-stpipe: Update to 0.6.0., Sharlatan Hellseher, 2024/07/20
- [bug#72219] [PATCH 29/34] gnu: Add python-sbpy., Sharlatan Hellseher, 2024/07/20
- [bug#72219] [PATCH 23/34] gnu: python-tweakwcs: Update to 0.8.8., Sharlatan Hellseher, 2024/07/20
- [bug#72219] [PATCH 16/34] gnu: python-extension-helpers: Enable tests., Sharlatan Hellseher, 2024/07/20
- [bug#72219] [PATCH 34/34] gnu: Add python-sncosmo.,
Sharlatan Hellseher <=
- [bug#72219] [PATCH 31/34] gnu: Add python-mpl-scatter-density., Sharlatan Hellseher, 2024/07/20
- [bug#72219] [PATCH 26/34] gnu: Add python-poetry-dynamic-versioning., Sharlatan Hellseher, 2024/07/20
- [bug#72219] [PATCH 32/34] gnu: Add python-glue-core., Sharlatan Hellseher, 2024/07/20
- [bug#72219] [PATCH 09/34] gnu: python-astropy-iers-data: Update to 0.2024.7.15.0.31.42., Sharlatan Hellseher, 2024/07/20
- [bug#72219] [PATCH 13/34] gnu: python-jwst: Update to 1.15.1., Sharlatan Hellseher, 2024/07/20
- [bug#72219] [PATCH 30/34] gnu: Add python-echo., Sharlatan Hellseher, 2024/07/20
- [bug#72219] [PATCH 22/34] gnu: python-sunpy: Update to 5.1.5., Sharlatan Hellseher, 2024/07/20
- [bug#72219] [PATCH 24/34] gnu: python-fast-histogram: Adjust inputs., Sharlatan Hellseher, 2024/07/20
- [bug#72219] [PATCH 28/34] gnu: Add python-ads., Sharlatan Hellseher, 2024/07/20
- [bug#72219] [PATCH 10/34] gnu: python-crds: Update to 11.17.26., Sharlatan Hellseher, 2024/07/20