[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
134/232: gnu: Add python-strict-rfc3339.
From: |
guix-commits |
Subject: |
134/232: gnu: Add python-strict-rfc3339. |
Date: |
Sun, 24 Apr 2022 23:59:01 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython-polyglossia
in repository guix.
commit aa025c90da35103caee70559dc260fdd98a00f80
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")
- 205/232: gnu: python-keyring: Fix test suite., (continued)
- 205/232: gnu: python-keyring: Fix test suite., guix-commits, 2022/04/24
- 214/232: gnu: python-sphinx: Update to 4.5.0., guix-commits, 2022/04/24
- 218/232: gnu: python-sphinxcontrib-websupport: Update to 1.2.4., guix-commits, 2022/04/24
- 221/232: gnu: python-sphinx-cloud-sptheme: Update to 1.10.1 [still broken]., guix-commits, 2022/04/24
- 222/232: gnu: Add python-beartype., guix-commits, 2022/04/24
- 230/232: gnu: Add python-mpl-sphinx-theme., guix-commits, 2022/04/24
- 76/232: gnu: Add java-antlr4-runtime-cpp., guix-commits, 2022/04/24
- 86/232: gnu: Add font-amiri., guix-commits, 2022/04/24
- 113/232: gnu: python-nbconvert: Update to 6.5.0., guix-commits, 2022/04/24
- 118/232: gnu: Add python-nbdime., guix-commits, 2022/04/24
- 134/232: gnu: Add python-strict-rfc3339.,
guix-commits <=
- 136/232: gnu: Add python-openapi-schema-validator., guix-commits, 2022/04/24
- 146/232: gnu: python-sqlalchemy: Update to 1.4.35., guix-commits, 2022/04/24
- 141/232: gnu: Add python-httpx-bootstrap., guix-commits, 2022/04/24
- 150/232: gnu: python-falcon: Update to 3.1.0., guix-commits, 2022/04/24
- 166/232: gnu: python-sparqlkernel: Use gexps and fix inputs., guix-commits, 2022/04/24
- 144/232: gnu: Add python-socksio., guix-commits, 2022/04/24
- 148/232: gnu: Add python-aioredis., guix-commits, 2022/04/24
- 154/232: gnu: python-hypothesis-6.23: Update to 6.43.3., guix-commits, 2022/04/24
- 165/232: gnu: python-sparqlwrapper: Update to 2.0.0., guix-commits, 2022/04/24
- 169/232: gnu: xeus: Update to 2.4.1., guix-commits, 2022/04/24