[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
14/20: gnu: python-astral: Update to 3.2.
From: |
guix-commits |
Subject: |
14/20: gnu: python-astral: Update to 3.2. |
Date: |
Thu, 25 May 2023 20:39:54 -0400 (EDT) |
monego pushed a commit to branch master
in repository guix.
commit 264d08fdc43c038be2138608e788b6821a23635a
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Wed May 24 22:51:48 2023 +0100
gnu: python-astral: Update to 3.2.
* gnu/packages/astronomy.scm (python-astral): Update to 3.2.
[build-system]: Switch to pyproject-build-system.
[arguments]: Do not override the 'check phase, specify #:test-flags and skip
failing tests. Add 'prepare-test-environment phase. Use G-Expressions.
[native-inputs]: Add python-poetry-core, python-pytest.
Signed-off-by: Vinicius Monego <monego@posteo.net>
---
gnu/packages/astronomy.scm | 53 ++++++++++++++++++++++++++++++++++++----------
1 file changed, 42 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 4f80e77857..7bd7c1e691 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -1937,24 +1937,55 @@ SolarSoft data analysis environment.")
(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"
+ " and not test_Sun_Local_str"
+ " and not test_SolarZenith_London"
+ " and not test_SolarZenith_Riyadh"
+ " and not test_moonrise_utc"
+ " and not test_moonrise_wellington"
+ " and not test_moonset_wellington"))
+ #: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")
- branch master updated (fb1c5d4df7 -> 3299b40b35), guix-commits, 2023/05/25
- 05/20: gnu: python-spherical-geometry: Add update note., guix-commits, 2023/05/25
- 09/20: gnu: python-pyvo: Update to 1.4.1., guix-commits, 2023/05/25
- 14/20: gnu: python-astral: Update to 3.2.,
guix-commits <=
- 08/20: gnu: python-reproject: Update to 0.10.0., guix-commits, 2023/05/25
- 04/20: gnu: python-sunpy: Update to 4.1.5., guix-commits, 2023/05/25
- 07/20: gnu: python-ccdproc: Enable tests., guix-commits, 2023/05/25
- 06/20: gnu: python-sgp4: Update to 2.22., guix-commits, 2023/05/25
- 11/20: gnu: python-astropy-healpix: Switch to pyproject-build-system., guix-commits, 2023/05/25
- 03/20: gnu: python-gwcs: Update to 0.18.3., guix-commits, 2023/05/25
- 02/20: gnu: python-asdf-wcs-schemas: Switch to pyproject-build-system., guix-commits, 2023/05/25
- 12/20: gnu: python-astroquery: Use G-Expressions., guix-commits, 2023/05/25
- 01/20: gnu: python-asdf-astropy: Update to 0.4.0., guix-commits, 2023/05/25
- 10/20: gnu: python-fitsio: Use G-Expressions., guix-commits, 2023/05/25