[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#63542] [PATCH 14/19] gnu: python-astral: Update to 3.2.
From: |
Sharlatan Hellseher |
Subject: |
[bug#63542] [PATCH 14/19] gnu: python-astral: Update to 3.2. |
Date: |
Wed, 17 May 2023 00:23:43 +0100 |
* gnu/packages/astronomy.scm (python-astral): Update to 3.2.
[build-system]: Shift to pyproject-build-system.
[arguments]: Use Gexps. Do not modify staged phases, use #:test-flags
instead and partly enable tests (128 of 334).
[native-inputs]: Add python-poetry-core.
---
gnu/packages/astronomy.scm | 70 ++++++++++++++++++++++++++++++++------
1 file changed, 59 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 058d3a6dcc..ab539efcfe 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -1939,24 +1939,72 @@ (define-public python-sunpy
(define-public python-astral
(package
(name "python-astral")
- (version "2.2")
+ (version "3.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "astral" version))
(sha256
- (base32 "1gkggdibccmdy9glymw3kbrkzm6svvsg0lk56hhy92y4smkrj7g4"))))
- (build-system python-build-system)
+ (base32 "121xag65rmv6pszbi3d206yz3jfwmpkf0jxjrxrd2scy5r0knz4v"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key inputs outputs tests? #:allow-other-keys)
- (when tests?
- (add-installed-pythonpath inputs outputs)
- (invoke "python" "-m" "pytest")))))))
+ (list
+ #:test-flags
+ ;; XXX: Disable tests which require newer version of python-pytz.
+ ;; No time zone found with key Pacific/Auckland
+ #~(list "-k" (string-append
+ "not test_TimezoneLookup"
+ " and not test_Sun"
+ " and not test_Dawn"
+ " and not test_Sunrise"
+ " and not test_SolarNoon"
+ " and not test_Dusk"
+ " and not test_Sunset"
+ " and not test_SolarElevation"
+ " and not test_SolarAzimuth"
+ " and not test_TimeAtAltitude"
+ " and not test_MoonNoDate"
+ " and not test_lookup"
+ " and not test_tzinfo"
+ " and not test_australia"
+ " and not test_adak"
+ " and not test_australia"
+ " and not test_Elevation_NonNaive"
+ " and not test_Wellington"
+ " and not test_Sun_Local_tzinfo[day0-dawn0]"
+ " and not test_Sun_Local_tzinfo[day1-dawn1]"
+ " and not test_Sun_Local_tzinfo[day2-dawn2]"
+ " and not test_Sun_Local_tzinfo[day3-dawn3]"
+ " and not test_Sun_Local_tzinfo[day4-dawn4]"
+ " and not test_Sun_Local_str[day0-dawn0]"
+ " and not test_Sun_Local_str[day1-dawn1]"
+ " and not test_Sun_Local_str[day2-dawn2]"
+ " and not test_Sun_Local_str[day3-dawn3]"
+ " and not test_Sun_Local_str[day4-dawn4]"
+ " and not test_SolarZenith_London[dt0-102.6]"
+ " and not test_SolarZenith_London[dt1-93.3]"
+ " and not test_SolarZenith_London[dt2-87.8]"
+ " and not test_SolarZenith_London[dt3-46]"
+ " and not test_SolarZenith_London[dt4-71]"
+ " and not test_SolarZenith_Riyadh[dt0-32]"
+ " and not test_SolarZenith_Riyadh[dt1-126]"
+ " and not test_moonrise_utc[date_0-risetime0]"
+ " and not test_moonrise_utc[date_1-risetime1]"
+ " and not test_moonrise_utc[date_2-risetime2]"
+ " and not test_moonrise_wellington[date_0-risetime0]"
+ " and not test_moonrise_wellington[date_1-risetime1]"
+ " and not test_moonset_wellington[date_0-settime0]"
+ " and not test_moonset_wellington[date_1-settime1]"))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'prepare-test-environment
+ (lambda _
+ (setenv "HOME" "/tmp"))))))
(native-inputs
- (list python-freezegun python-setuptools-scm))
+ (list python-freezegun
+ python-poetry-core
+ python-pytest
+ python-setuptools-scm))
(propagated-inputs
(list python-dataclasses python-pytest python-pytz))
(home-page "https://github.com/sffjunkie/astral")
--
2.39.2
- [bug#63542] [PATCH 10/19] gnu: python-fitsio: Use Gexp., (continued)
- [bug#63542] [PATCH 10/19] gnu: python-fitsio: Use Gexp., Sharlatan Hellseher, 2023/05/16
- [bug#63542] [PATCH 11/19] gnu: python-astropy-healpix: Use Gexp., Sharlatan Hellseher, 2023/05/16
- [bug#63542] [PATCH 15/19] gnu: python-poppy: Update to 1.1.1., Sharlatan Hellseher, 2023/05/16
- [bug#63542] [PATCH 17/19] gnu: python-ephem: Update to 4.1.4., Sharlatan Hellseher, 2023/05/16
- [bug#63542] [PATCH 18/19] gnu: python-asdf: Update to 2.15.0., Sharlatan Hellseher, 2023/05/16
- [bug#63542] [PATCH 12/19] gnu: python-astroquery: Use Gexp., Sharlatan Hellseher, 2023/05/16
- [bug#63542] [PATCH 13/19] gnu: python-pynbody: Update to 1.3.1, simplify., Sharlatan Hellseher, 2023/05/16
- [bug#63542] [PATCH 16/19] gnu: python-photutils: Update to 1.7.0., Sharlatan Hellseher, 2023/05/16
- [bug#63542] [PATCH 14/19] gnu: python-astral: Update to 3.2.,
Sharlatan Hellseher <=
- [bug#63542], Sharlatan Hellseher, 2023/05/23
- [bug#63542] [PATCH v2 00/20]: Cover review points., Sharlatan Hellseher, 2023/05/24
- [bug#63542] [PATCH v2 01/20] gnu: python-asdf-astropy: Update to 0.4.0., Sharlatan Hellseher, 2023/05/24
- [bug#63542] [PATCH v2 02/20] gnu: python-asdf-wcs-schemas: Symplify., Sharlatan Hellseher, 2023/05/24
- [bug#63542] [PATCH v2 03/20] gnu: python-gwcs: Update to 0.18.3., Sharlatan Hellseher, 2023/05/24
- [bug#63542] [PATCH v2 05/20] gnu: python-spherical-geometry: Add update note., Sharlatan Hellseher, 2023/05/24
- [bug#63542] [PATCH v2 07/20] gnu: python-ccdproc: Enable tests., Sharlatan Hellseher, 2023/05/24