mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 09:19:15 -04:00
Add new port devel/py-strict-rfc3339: Strict, simple, lightweight RFC3339 functions
Simple and lightweight python module to validate, parse and generate RFC3339 time strings. It was initially created as a part of habitat in response to difficulty using other libraries. It can convert UNIX timestamps to and from RFC3339, either producing strings with a UTC offset (Z) or with the offset that the C time module reports is the local timezone offset. It has minimal dependencies (none beyond those that come with Python) and avoids the error-prone act of dealing with timezones as much as possible. Besides that, it's designed to be strict and stick closely to RFC3339, with a couple of very small caveats. It's also fully unit tested. WWW: http://www.danielrichman.co.uk/libraries/strict-rfc3339.html PR: 227031 Submitted by: Kai <freebsd_ports@k-worx.org>
This commit is contained in:
parent
7043ccf5ce
commit
b993f92012
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=465937
4 changed files with 37 additions and 0 deletions
|
@ -4947,6 +4947,7 @@
|
||||||
SUBDIR += py-stopit
|
SUBDIR += py-stopit
|
||||||
SUBDIR += py-strategies
|
SUBDIR += py-strategies
|
||||||
SUBDIR += py-streamparse
|
SUBDIR += py-streamparse
|
||||||
|
SUBDIR += py-strict-rfc3339
|
||||||
SUBDIR += py-structlog
|
SUBDIR += py-structlog
|
||||||
SUBDIR += py-stsci.distutils
|
SUBDIR += py-stsci.distutils
|
||||||
SUBDIR += py-subprocess32
|
SUBDIR += py-subprocess32
|
||||||
|
|
19
devel/py-strict-rfc3339/Makefile
Normal file
19
devel/py-strict-rfc3339/Makefile
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
PORTNAME= strict-rfc3339
|
||||||
|
DISTVERSION= 0.7
|
||||||
|
CATEGORIES= devel python
|
||||||
|
MASTER_SITES= CHEESESHOP
|
||||||
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||||
|
|
||||||
|
MAINTAINER= freebsd_ports@k-worx.org
|
||||||
|
COMMENT= Strict, simple, lightweight RFC3339 functions
|
||||||
|
|
||||||
|
LICENSE= GPLv3
|
||||||
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||||
|
|
||||||
|
USES= python
|
||||||
|
USE_PYTHON= distutils autoplist
|
||||||
|
NO_ARCH= yes
|
||||||
|
|
||||||
|
.include <bsd.port.mk>
|
3
devel/py-strict-rfc3339/distinfo
Normal file
3
devel/py-strict-rfc3339/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
TIMESTAMP = 1522234422
|
||||||
|
SHA256 (strict-rfc3339-0.7.tar.gz) = 5cad17bedfc3af57b399db0fed32771f18fc54bbd917e85546088607ac5e1277
|
||||||
|
SIZE (strict-rfc3339-0.7.tar.gz) = 17552
|
14
devel/py-strict-rfc3339/pkg-descr
Normal file
14
devel/py-strict-rfc3339/pkg-descr
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
Simple and lightweight python module to validate, parse and generate RFC3339
|
||||||
|
time strings. It was initially created as a part of habitat in response to
|
||||||
|
difficulty using other libraries.
|
||||||
|
|
||||||
|
It can convert UNIX timestamps to and from RFC3339, either producing strings
|
||||||
|
with a UTC offset (Z) or with the offset that the C time module reports is
|
||||||
|
the local timezone offset. It has minimal dependencies (none beyond those
|
||||||
|
that come with Python) and avoids the error-prone act of dealing with
|
||||||
|
timezones as much as possible.
|
||||||
|
|
||||||
|
Besides that, it's designed to be strict and stick closely to RFC3339, with a
|
||||||
|
couple of very small caveats. It's also fully unit tested.
|
||||||
|
|
||||||
|
WWW: http://www.danielrichman.co.uk/libraries/strict-rfc3339.html
|
Loading…
Add table
Reference in a new issue