[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
134/242: gnu: Add python-strict-rfc3339.
From: |
guix-commits |
Subject: |
134/242: gnu: Add python-strict-rfc3339. |
Date: |
Thu, 12 May 2022 14:14:20 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 34c98f2cd387675313b06d1ff1baab2848a413bf
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sun Apr 17 08:46:41 2022 -0400
gnu: Add python-strict-rfc3339.
* gnu/packages/python-xyz.scm (python-strict-rfc3339): New variable.
---
gnu/packages/python-xyz.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 78e5334bce..1ca87fee50 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -29550,6 +29550,48 @@ from multiple sources. Online trading accounts also
often provide account
statements in OFX files.")
(license license:expat)))
+(define-public python-strict-rfc3339
+ (package
+ (name "python-strict-rfc3339")
+ (version "0.7")
+ (source
+ (origin
+ (method git-fetch) ;no tests in pypi release
+ (uri (git-reference
+ (url "https://github.com/danielrichman/strict-rfc3339")
+ (commit (string-append "version-" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0b12bh9v9gwkm89kxbidxw2z81lg8fx1v5fzgs313v1wgx6qb09p"))))
+ (build-system python-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv"
+ ;; The timestamp to local offset tests fail due to
+ ;; missing timezone data (see:
+ ;;
https://github.com/danielrichman/strict-rfc3339/issues/9).
+ "-k" "not LocalOffset")))))))
+ (native-inputs (list python-pytest))
+ (home-page "https://github.com/danielrichman/strict-rfc3339")
+ (synopsis "RFC3339 procedures library")
+ (description "The @code{strict_rfc3339} Python module provides strict,
+simple, lightweight RFC3339 procedures. It enables or aims to:
+@itemize
+@item Convert UNIX timestamps to and from RFC3339.
+@item Produce RFC3339 strings with a UTC offset (Z) or with the offset that
+the C time module reports is the local timezone offset.
+@item Be simple with minimal dependencies/libraries.
+@item Avoid timezones as much as possible.
+@item Be very strict and follow RFC3339.
+@end itemize")
+ (license license:gpl3+)))
+
(define-public python-stripe
(package
(name "python-stripe")
- 82/242: gnu: Add python-ufolib2., (continued)
- 82/242: gnu: Add python-ufolib2., guix-commits, 2022/05/12
- 100/242: gnu: python-pytest-xdist-next: Update to 2.5.0., guix-commits, 2022/05/12
- 94/242: gnu: pylint: Run tests in parallel., guix-commits, 2022/05/12
- 111/242: gnu: Add texlive-unicode-math., guix-commits, 2022/05/12
- 103/242: gnu: python-jupyter-core: Update to 4.10.0., guix-commits, 2022/05/12
- 38/242: gnu: Add python-jaraco-context-bootstrap., guix-commits, 2022/05/12
- 77/242: gnu: Add python-fonttools-next., guix-commits, 2022/05/12
- 117/242: gnu: python-notebook: Update to 6.4.10., guix-commits, 2022/05/12
- 123/242: gnu: Add python-sphinx-sitemap., guix-commits, 2022/05/12
- 127/242: gnu: Add texlive-cbfonts., guix-commits, 2022/05/12
- 134/242: gnu: Add python-strict-rfc3339.,
guix-commits <=
- 151/242: gnu: Add python-dictpath., guix-commits, 2022/05/12
- 170/242: gnu: python-types-dataclasses: Fix typo., guix-commits, 2022/05/12
- 171/242: gnu: python-cmarkgfm: Update to 0.8.0., guix-commits, 2022/05/12
- 188/242: gnu: python-ghp-import: Update to 2.0.2., guix-commits, 2022/05/12
- 35/242: gnu: Add python-ufonormalizer., guix-commits, 2022/05/12
- 06/242: gnu: Add python-stack-data., guix-commits, 2022/05/12
- 13/242: gnu: Add texlive-stix2-otf., guix-commits, 2022/05/12
- 21/242: gnu: Add python-opentype-sanitizer., guix-commits, 2022/05/12
- 17/242: gnu: Add texlive-cs., guix-commits, 2022/05/12
- 28/242: gnu: Add python-booleanoperations., guix-commits, 2022/05/12