mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
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.
This commit is contained in:
parent
bbb9b66316
commit
bba0676e86
1 changed files with 13 additions and 20 deletions
|
@ -375,32 +375,25 @@ (define-public python-timezonefinder
|
||||||
(define-public python-tzlocal
|
(define-public python-tzlocal
|
||||||
(package
|
(package
|
||||||
(name "python-tzlocal")
|
(name "python-tzlocal")
|
||||||
(version "2.1")
|
(version "5.2")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method git-fetch)
|
||||||
(uri (pypi-uri "tzlocal" version))
|
(uri (git-reference
|
||||||
|
(url "https://github.com/regebro/tzlocal")
|
||||||
|
(commit version)))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0i1fm4sl04y65qnaqki0w75j34w863gxjj8ag0vwgvaa572rfg34"))))
|
"1apa3i5fsfw28jnaaaa7jr976y5wbifl3h04id0bvplvsb9zpmy7"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-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)))))
|
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-pytz))
|
(list python-tzdata))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-mock))
|
(list python-check-manifest
|
||||||
|
python-pytest
|
||||||
|
python-pytest-cov
|
||||||
|
python-pytest-mock))
|
||||||
(home-page "https://github.com/regebro/tzlocal")
|
(home-page "https://github.com/regebro/tzlocal")
|
||||||
(synopsis "Local timezone information for Python")
|
(synopsis "Local timezone information for Python")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in a new issue