[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/10: gnu: python-tzlocal: Update to 5.2.
From: |
guix-commits |
Subject: |
08/10: gnu: python-tzlocal: Update to 5.2. |
Date: |
Sat, 3 Feb 2024 08:23:04 -0500 (EST) |
lilyp pushed a commit to branch master
in repository guix.
commit bba0676e86601c248cd0f3642a90b061af1f5b4d
Author: Liliana Marie Prikler <liliana.prikler@gmail.com>
AuthorDate: Thu Jan 25 21:09:50 2024 +0100
gnu: python-tzlocal: Update to 5.2.
* gnu/packages/time.scm (python-tzlocal): Update to 5.2.
[source]: Fetch from git.
[build-system]: Use pyproject-build-system
[propagated-inputs]: Remove python-pytz. Add python-tzdata.
[native-inputs]: Add python-check-manifest, python-pytest, and
python-pytest-cov.
---
gnu/packages/time.scm | 33 +++++++++++++--------------------
1 file changed, 13 insertions(+), 20 deletions(-)
diff --git a/gnu/packages/time.scm b/gnu/packages/time.scm
index 5e8fcf05d9..b0d800da94 100644
--- a/gnu/packages/time.scm
+++ b/gnu/packages/time.scm
@@ -375,32 +375,25 @@ timezone for given coordinates on earth entirely
offline.")
(define-public python-tzlocal
(package
(name "python-tzlocal")
- (version "2.1")
+ (version "5.2")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "tzlocal" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/regebro/tzlocal")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
(base32
- "0i1fm4sl04y65qnaqki0w75j34w863gxjj8ag0vwgvaa572rfg34"))))
- (build-system python-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'check 'fix-symlink-test
- ;; see: https://github.com/regebro/tzlocal/issues/53
- (lambda _
- (delete-file "tests/test_data/symlink_localtime/etc/localtime")
- (symlink "../usr/share/zoneinfo/Africa/Harare"
- "tests/test_data/symlink_localtime/etc/localtime")
- ;; And skip the test_fail test, it is known to fail
- (substitute* "tests/tests.py"
- (("def test_fail") "def _test_fail"))
- #t)))))
+ "1apa3i5fsfw28jnaaaa7jr976y5wbifl3h04id0bvplvsb9zpmy7"))))
+ (build-system pyproject-build-system)
(propagated-inputs
- (list python-pytz))
+ (list python-tzdata))
(native-inputs
- (list python-mock))
+ (list python-check-manifest
+ python-pytest
+ python-pytest-cov
+ python-pytest-mock))
(home-page "https://github.com/regebro/tzlocal")
(synopsis "Local timezone information for Python")
(description
- branch master updated (9389070b9c -> 179bb57d25), guix-commits, 2024/02/03
- 03/10: gnu: Add python-clingo-dl., guix-commits, 2024/02/03
- 07/10: gnu: Add python-tzdata., guix-commits, 2024/02/03
- 09/10: gnu: python-rpy2: Update to 3.5.15., guix-commits, 2024/02/03
- 01/10: gnu: Add waffle., guix-commits, 2024/02/03
- 02/10: gnu: Add piglit., guix-commits, 2024/02/03
- 05/10: gnu: Add python-plingo., guix-commits, 2024/02/03
- 04/10: gnu: python-clorm: Reindent with emacs., guix-commits, 2024/02/03
- 08/10: gnu: python-tzlocal: Update to 5.2.,
guix-commits <=
- 10/10: gnu: raylib: Update to 5.0., guix-commits, 2024/02/03
- 06/10: gnu: Add lua-clingo., guix-commits, 2024/02/03