diff --git a/devel/Makefile b/devel/Makefile index 041d373719b1..4de49ad111b9 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4947,6 +4947,7 @@ SUBDIR += py-stopit SUBDIR += py-strategies SUBDIR += py-streamparse + SUBDIR += py-strict-rfc3339 SUBDIR += py-structlog SUBDIR += py-stsci.distutils SUBDIR += py-subprocess32 diff --git a/devel/py-strict-rfc3339/Makefile b/devel/py-strict-rfc3339/Makefile new file mode 100644 index 000000000000..d2e2de25e120 --- /dev/null +++ b/devel/py-strict-rfc3339/Makefile @@ -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 diff --git a/devel/py-strict-rfc3339/distinfo b/devel/py-strict-rfc3339/distinfo new file mode 100644 index 000000000000..7aee1c4e825f --- /dev/null +++ b/devel/py-strict-rfc3339/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1522234422 +SHA256 (strict-rfc3339-0.7.tar.gz) = 5cad17bedfc3af57b399db0fed32771f18fc54bbd917e85546088607ac5e1277 +SIZE (strict-rfc3339-0.7.tar.gz) = 17552 diff --git a/devel/py-strict-rfc3339/pkg-descr b/devel/py-strict-rfc3339/pkg-descr new file mode 100644 index 000000000000..53d7afe4cf14 --- /dev/null +++ b/devel/py-strict-rfc3339/pkg-descr @@ -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