[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: |
Wed, 11 May 2022 18:03:17 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython-polyglossia
in repository guix.
commit f934a83df05dd6883f9ad5bcb78e358d7f514d63
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 ab41d2b3aa..e9371cb940 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -29538,6 +29538,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")
- 105/242: gnu: python-ipykernel: Update to 6.13.0., (continued)
- 105/242: gnu: python-ipykernel: Update to 6.13.0., guix-commits, 2022/05/11
- 107/242: gnu: python-ipyparallel: Update to 8.2.1., guix-commits, 2022/05/11
- 108/242: gnu: python-anyio: Replace python-pytest-trio with python-trio., guix-commits, 2022/05/11
- 115/242: gnu: python-nbval: Fix build., guix-commits, 2022/05/11
- 120/242: gnu: python-sphinx: Propagate TexLive dependencies., guix-commits, 2022/05/11
- 125/242: gnu: texlive-polyglossia: Rename and fix package., guix-commits, 2022/05/11
- 126/242: gnu: Add texlive-cbfonts-fd., guix-commits, 2022/05/11
- 127/242: gnu: Add texlive-cbfonts., guix-commits, 2022/05/11
- 128/242: download: Add a mirror for CTAN., guix-commits, 2022/05/11
- 129/242: gnu: texlive-latex-geometry: Propagate texlive-latex-graphics., guix-commits, 2022/05/11
- 134/242: gnu: Add python-strict-rfc3339.,
guix-commits <=
- 132/242: gnu: python-ipython-documentation: Also build info and pdf targets., guix-commits, 2022/05/11
- 138/242: gnu: Add python-cbor2., guix-commits, 2022/05/11
- 136/242: gnu: Add python-openapi-schema-validator., guix-commits, 2022/05/11
- 140/242: gnu: Add python-httpcore-bootstrap., guix-commits, 2022/05/11
- 146/242: gnu: python-sqlalchemy: Update to 1.4.35., guix-commits, 2022/05/11
- 149/242: gnu: python-fakeredis: Update to 1.7.1., guix-commits, 2022/05/11
- 144/242: gnu: Add python-socksio., guix-commits, 2022/05/11
- 137/242: gnu: Add python-openapi-spec-validator., guix-commits, 2022/05/11
- 145/242: gnu: python-sqlalchemy: Run tests in parallel via xdist., guix-commits, 2022/05/11
- 141/242: gnu: Add python-httpx-bootstrap., guix-commits, 2022/05/11