mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-pyrfc3339: Update to 2.0.1.
* gnu/packages/time.scm (python-pyrfc3339): Update to 2.0.1. [source]: Switch to git-fetch providing tests. [build-system]: Use pyproject. [arguments] <phases>: Add 'pre-check. [propagated-inputs]: Remove python-pytz. [native-inputs]: Remove python-nose; add python-pytest, python-setuptools, and tzdata-for-tests. Change-Id: I72c0fff1747b9c3bd806180325a64853be545f31
This commit is contained in:
parent
3086f117bc
commit
09d6e06ec7
1 changed files with 20 additions and 9 deletions
|
@ -636,19 +636,30 @@ value (in fractional seconds) of a clock which never goes backwards.")
|
|||
(define-public python-pyrfc3339
|
||||
(package
|
||||
(name "python-pyrfc3339")
|
||||
(version "1.1")
|
||||
(version "2.0.1")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (pypi-uri "pyRFC3339" version))
|
||||
(method git-fetch) ;no tests in PyPI archive
|
||||
(uri (git-reference
|
||||
(url "https://github.com/kurtraschke/pyRFC3339")
|
||||
(commit (string-append "v" version))))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"06jv7ar7lpvvk0dixzwdr3wgm0g1lipxs429s2z7knwwa7hwpf41"))))
|
||||
(build-system python-build-system)
|
||||
(propagated-inputs
|
||||
(list python-pytz))
|
||||
(base32 "1q7kz8i8kp1hk40zswgm7dcyyd2xmjpgn1jdm6rlpv3ddjdxdg48"))))
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-before 'check 'pre-check
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(setenv "TZ" "UTC")
|
||||
(setenv "TZDIR"
|
||||
(search-input-directory inputs "share/zoneinfo")))))))
|
||||
(native-inputs
|
||||
(list python-nose))
|
||||
(list python-pytest
|
||||
python-setuptools
|
||||
tzdata-for-tests))
|
||||
(home-page "https://github.com/kurtraschke/pyRFC3339")
|
||||
(synopsis "Python timestamp library")
|
||||
(description "Python library for generating and parsing RFC 3339-compliant
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue