[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
128/204: gnu: Add python-strict-rfc3339.
From: |
guix-commits |
Subject: |
128/204: gnu: Add python-strict-rfc3339. |
Date: |
Wed, 20 Apr 2022 02:03:32 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython-polyglossia
in repository guix.
commit 667741463268c8b4ec7ba68c5b3af73894719380
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 8cb24c5c82..471fa328a4 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -29448,6 +29448,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")
- 126/204: gnu: python-ipython-documentation: Also build info and pdf targets., (continued)
- 126/204: gnu: python-ipython-documentation: Also build info and pdf targets., guix-commits, 2022/04/20
- 150/204: gnu: python-llvmlite: Update to 0.38.0., guix-commits, 2022/04/20
- 175/204: gnu: Add python-argparse-addons., guix-commits, 2022/04/20
- 180/204: gnu: Add python-mergedeep., guix-commits, 2022/04/20
- 198/204: gnu: emacsy: Use webkitgtk-with-libsoup2., guix-commits, 2022/04/20
- 203/204: gnu: python-flask-login: Update to 0.6.0., guix-commits, 2022/04/20
- 113/204: gnu: python-nbconvert: Update to 6.5.0., guix-commits, 2022/04/20
- 117/204: gnu: python-notebook: Update to 6.4.10., guix-commits, 2022/04/20
- 118/204: gnu: Add python-nbdime., guix-commits, 2022/04/20
- 119/204: gnu: Add python-docrepr., guix-commits, 2022/04/20
- 128/204: gnu: Add python-strict-rfc3339.,
guix-commits <=
- 129/204: gnu: Add python-rfc3339-validator., guix-commits, 2022/04/20
- 134/204: gnu: Add python-httpcore-bootstrap., guix-commits, 2022/04/20
- 135/204: gnu: Add python-httpx-bootstrap., guix-commits, 2022/04/20
- 137/204: gnu: python-uvicorn: Update to 0.17.6., guix-commits, 2022/04/20
- 149/204: gnu: python-numpy: Update to 1.21.6 and parallelize build/tests., guix-commits, 2022/04/20
- 83/204: gnu: Add python-compreffor., guix-commits, 2022/04/20
- 121/204: gnu: Add python-pep621., guix-commits, 2022/04/20
- 130/204: gnu: Add python-openapi-schema-validator., guix-commits, 2022/04/20
- 136/204: gnu: python-httpx: Update to 0.22.0., guix-commits, 2022/04/20
- 140/204: gnu: python-sqlalchemy: Update to 1.4.35., guix-commits, 2022/04/20