mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-sncosmo: Update to 2.12.0.
* gnu/packages/astronomy.scm (python-sncosmo): Update to 2.12.0. [arguments] <test-flags>: Ignore the whole file with tests requiring network access; skip more tests requiring networking. [phases] {relax-requirements}: Remove relaxation for pyyaml; add for h5py. [propagated-inputs]: Add python-h5py. [native-inputs]: Remove python-cython and python-pytest-cov; add python-cython-3. Change-Id: I592cf6cdde0186e4db24db4359b5d6875b69c394
This commit is contained in:
parent
9423215aae
commit
5270127caf
1 changed files with 17 additions and 31 deletions
|
@ -3396,58 +3396,44 @@ and the options
|
||||||
(define-public python-sncosmo
|
(define-public python-sncosmo
|
||||||
(package
|
(package
|
||||||
(name "python-sncosmo")
|
(name "python-sncosmo")
|
||||||
(version "2.11.2")
|
(version "2.12.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "sncosmo" version))
|
(uri (pypi-uri "sncosmo" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "1n7kh2qinp04ilf8d26hgjs6c3bdy5vbmppc6ps9jy1q0ll8gi69"))))
|
(base32 "0n5ygpq888hgdy7d4b8zz3hbfdi4vn4lsdp9m9ii0a6ghh61f803"))))
|
||||||
(build-system pyproject-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:test-flags
|
#:test-flags
|
||||||
;; Disable tests requireing remote access to download test data.
|
|
||||||
#~(list
|
#~(list
|
||||||
|
;; 23/27 tests fail requiring network access, ignore the whole file.
|
||||||
|
"--ignore=sncosmo/tests/test_builtins.py"
|
||||||
"-k" (string-join
|
"-k" (string-join
|
||||||
(list "not test_megacampsf_bandpass"
|
;; Tests require network access.
|
||||||
"test_builtins_remote_aa"
|
(list "not test_C11"
|
||||||
"test_builtins_remote_nm"
|
|
||||||
"test_builtins_remote_um"
|
|
||||||
"test_builtins_remote_wfc3"
|
|
||||||
"test_builtins_megacampsf"
|
|
||||||
"test_builtins_timeseries_ascii"
|
|
||||||
"test_builtins_timeseries_fits"
|
|
||||||
"test_builtins_salt2model"
|
|
||||||
"test_builtins_salt3model"
|
|
||||||
"test_builtins_2011fe"
|
|
||||||
"test_builtins_mlcs2k2"
|
|
||||||
"test_builtins_snemo"
|
|
||||||
"test_builtins_sugar"
|
|
||||||
"test_builtins_magsys_fits"
|
|
||||||
"test_builtins_magsys_csp"
|
|
||||||
"test_builtins_magsys_ab_b12"
|
|
||||||
"test_builtins_magsys_jla"
|
|
||||||
"test_csp_magsystem"
|
|
||||||
"test_compositemagsystem_band_error"
|
|
||||||
"test_G10"
|
"test_G10"
|
||||||
"test_C11"
|
|
||||||
"test_salt2source_timeseries_vs_snfit"
|
|
||||||
"test_salt2source_rcov_vs_snfit"
|
|
||||||
"test_bandflux"
|
"test_bandflux"
|
||||||
"test_bandflux_multi"
|
"test_bandflux_multi"
|
||||||
"test_bandflux_zpsys"
|
"test_bandflux_zpsys"
|
||||||
"test_bandfluxcov"
|
"test_bandfluxcov"
|
||||||
"test_bandmag"
|
"test_bandmag"
|
||||||
"test_sugarsource")
|
"test_compositemagsystem_band_error"
|
||||||
|
"test_csp_magsystem"
|
||||||
|
"test_megacampsf_bandpass"
|
||||||
|
"test_salt2source_rcov_vs_snfit"
|
||||||
|
"test_salt2source_timeseries_vs_snfit"
|
||||||
|
"test_sugarsource"
|
||||||
|
"test_ztf_bandpass")
|
||||||
" and not "))
|
" and not "))
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'relax-requirements
|
(add-after 'unpack 'relax-requirements
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "setup.cfg"
|
(substitute* "setup.cfg"
|
||||||
;; pyyaml>=6.0.1
|
;; h5py>=3.11
|
||||||
(("6.0.1") "6.0"))))
|
(("3.11") "3.8.0"))))
|
||||||
(add-before 'check 'prepare-test-environment
|
(add-before 'check 'prepare-test-environment
|
||||||
(lambda _
|
(lambda _
|
||||||
(setenv "HOME" "/tmp")
|
(setenv "HOME" "/tmp")
|
||||||
|
@ -3455,16 +3441,16 @@ and the options
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-astropy
|
(list python-astropy
|
||||||
python-extinction
|
python-extinction
|
||||||
|
python-h5py
|
||||||
python-looseversion
|
python-looseversion
|
||||||
python-numpy
|
python-numpy
|
||||||
python-pyyaml
|
python-pyyaml
|
||||||
python-scipy))
|
python-scipy))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list ;; python-iminuit ; not packed, optional
|
(list ;; python-iminuit ; not packed, optional
|
||||||
python-cython
|
python-cython-3
|
||||||
python-pytest
|
python-pytest
|
||||||
python-pytest-astropy
|
python-pytest-astropy
|
||||||
python-pytest-cov
|
|
||||||
python-setuptools
|
python-setuptools
|
||||||
python-wheel))
|
python-wheel))
|
||||||
(home-page "https://sncosmo.readthedocs.org")
|
(home-page "https://sncosmo.readthedocs.org")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue