[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
134/233: gnu: Add python-strict-rfc3339.
From: |
guix-commits |
Subject: |
134/233: gnu: Add python-strict-rfc3339. |
Date: |
Sun, 24 Apr 2022 23:39:54 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython-polyglossia
in repository guix.
commit 3fbbe278c47364654dbac1443b65b8dfe19b9d80
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 fd0799da9f..4e37e7d2f4 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -29444,6 +29444,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")
- 87/233: gnu: Add font-sil-ezra., (continued)
- 87/233: gnu: Add font-sil-ezra., guix-commits, 2022/04/24
- 86/233: gnu: Add font-amiri., guix-commits, 2022/04/24
- 88/233: gnu: Add texlive-bidi., guix-commits, 2022/04/24
- 89/233: gnu: Add font-gfs-ambrosia., guix-commits, 2022/04/24
- 92/233: gnu: Add python-untangle., guix-commits, 2022/04/24
- 93/233: gnu: python-black: Update to 22.3.0., guix-commits, 2022/04/24
- 95/233: gnu: python-trio: Update to 0.20.0., guix-commits, 2022/04/24
- 96/233: gnu: Add python-pydevd., guix-commits, 2022/04/24
- 97/233: gnu: Add python-debugpy., guix-commits, 2022/04/24
- 98/233: gnu: python-greenlet: Update to 1.1.2., guix-commits, 2022/04/24
- 134/233: gnu: Add python-strict-rfc3339.,
guix-commits <=
- 147/233: gnu: Add python-pecan., guix-commits, 2022/04/24
- 148/233: gnu: Add python-aioredis., guix-commits, 2022/04/24
- 164/233: gnu: python-voila: Update to 0.3.5., guix-commits, 2022/04/24
- 190/233: gnu: python-mkdocs: Update to 1.3.0., guix-commits, 2022/04/24
- 192/233: gnu: python-cantools: Update to 37.0.7., guix-commits, 2022/04/24
- 195/233: gnu: python-croniter: Update to 1.3.4., guix-commits, 2022/04/24
- 100/233: gnu: python-pytest-xdist-next: Update to 2.5.0., guix-commits, 2022/04/24
- 103/233: gnu: python-jupyter-core: Update to 4.10.0., guix-commits, 2022/04/24
- 102/233: gnu: python-nest-asyncio: Update to 1.5.5., guix-commits, 2022/04/24
- 109/233: gnu: python-nbclient: Update to 0.6.0., guix-commits, 2022/04/24