[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
128/166: gnu: Add python-strict-rfc3339.
From: |
guix-commits |
Subject: |
128/166: gnu: Add python-strict-rfc3339. |
Date: |
Tue, 19 Apr 2022 09:12:30 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython+polyglossia
in repository guix.
commit 0e36b59fecade8cedb2b7bf603a7323dd0a9665c
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 7e3918ab97..387060e0a7 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -29451,6 +29451,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")
- 121/166: gnu: Add python-pep621., (continued)
- 121/166: gnu: Add python-pep621., guix-commits, 2022/04/19
- 110/166: gnu: python-bleach: Update to 5.0.0., guix-commits, 2022/04/19
- 126/166: gnu: python-ipython-documentation: Also build info and pdf targets., guix-commits, 2022/04/19
- 115/166: gnu: python-nbval: Fix build., guix-commits, 2022/04/19
- 96/166: gnu: Add python-pydevd., guix-commits, 2022/04/19
- 107/166: gnu: python-ipyparallel: Update to 8.2.1., guix-commits, 2022/04/19
- 97/166: gnu: Add python-debugpy., guix-commits, 2022/04/19
- 134/166: gnu: Add python-httpcore-bootstrap., guix-commits, 2022/04/19
- 113/166: gnu: python-nbconvert: Update to 6.5.0., guix-commits, 2022/04/19
- 127/166: gnu: python-websockets: Update to 10.3 and enable tests., guix-commits, 2022/04/19
- 128/166: gnu: Add python-strict-rfc3339.,
guix-commits <=
- 130/166: gnu: Add python-openapi-schema-validator., guix-commits, 2022/04/19
- 104/166: gnu: python-jupyter-client: Update to 7.2.2., guix-commits, 2022/04/19
- 137/166: gnu: python-uvicorn: Update to 0.17.6., guix-commits, 2022/04/19
- 135/166: gnu: Add python-httpx-bootstrap., guix-commits, 2022/04/19
- 116/166: gnu: python-send2trash: Update to 1.8.0 and update home page., guix-commits, 2022/04/19
- 138/166: gnu: Add python-socksio., guix-commits, 2022/04/19
- 146/166: gnu: Add python-openapi-core., guix-commits, 2022/04/19
- 147/166: gnu: Add python-jupyterlab-server., guix-commits, 2022/04/19
- 149/166: gnu: python-numpy: Update to 1.21.6 and parallelize build/tests., guix-commits, 2022/04/19
- 144/166: gnu: python-falcon: Update to 3.1.0., guix-commits, 2022/04/19