diff options
author | adam <adam@pkgsrc.org> | 2018-12-06 19:25:33 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2018-12-06 19:25:33 +0000 |
commit | 0229611ff6273bf5d08da2ef7564762723e7c34a (patch) | |
tree | 39616ba2af9cc0b96ec1842fcb4a6fba8e453a6c /time | |
parent | f9abcf9ee5b64b9e6ca695c081a2193696306a0c (diff) | |
download | pkgsrc-0229611ff6273bf5d08da2ef7564762723e7c34a.tar.gz |
py-aniso8601: added version 4.0.1
Library for parsing ISO 8601 strings
Features
* Pure Python implementation
* Python 3 support
* Logical behavior
- Parse a time, get a datetime.time
- Parse a date, get a datetime.date
- Parse a datetime, get a datetime.datetime
- Parse a duration, get a datetime.timedelta
- Parse an interval, get a tuple of dates or datetimes
- Parse a repeating interval, get a date or datetime generator
* UTC offset represented as fixed-offset tzinfo
* Parser separate from representation, allowing parsing to different datetime
formats
* No regular expressions
Diffstat (limited to 'time')
-rw-r--r-- | time/Makefile | 3 | ||||
-rw-r--r-- | time/py-aniso8601/DESCR | 16 | ||||
-rw-r--r-- | time/py-aniso8601/Makefile | 22 | ||||
-rw-r--r-- | time/py-aniso8601/PLIST | 36 | ||||
-rw-r--r-- | time/py-aniso8601/distinfo | 6 |
5 files changed, 82 insertions, 1 deletions
diff --git a/time/Makefile b/time/Makefile index cdc21e1ab9e..19d1c8a2e00 100644 --- a/time/Makefile +++ b/time/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.179 2018/09/15 15:15:07 khorben Exp $ +# $NetBSD: Makefile,v 1.180 2018/12/06 19:25:33 adam Exp $ # COMMENT= Clocks, calendars, daily planners and other time related applications @@ -129,6 +129,7 @@ SUBDIR+= planner SUBDIR+= polclock SUBDIR+= projclock SUBDIR+= projectlibre +SUBDIR+= py-aniso8601 SUBDIR+= py-arrow SUBDIR+= py-dateparser SUBDIR+= py-dateutil diff --git a/time/py-aniso8601/DESCR b/time/py-aniso8601/DESCR new file mode 100644 index 00000000000..f7392e1c88a --- /dev/null +++ b/time/py-aniso8601/DESCR @@ -0,0 +1,16 @@ +Library for parsing ISO 8601 strings + +Features +* Pure Python implementation +* Python 3 support +* Logical behavior + - Parse a time, get a datetime.time + - Parse a date, get a datetime.date + - Parse a datetime, get a datetime.datetime + - Parse a duration, get a datetime.timedelta + - Parse an interval, get a tuple of dates or datetimes + - Parse a repeating interval, get a date or datetime generator +* UTC offset represented as fixed-offset tzinfo +* Parser separate from representation, allowing parsing to different datetime + formats +* No regular expressions diff --git a/time/py-aniso8601/Makefile b/time/py-aniso8601/Makefile new file mode 100644 index 00000000000..3baa89ec842 --- /dev/null +++ b/time/py-aniso8601/Makefile @@ -0,0 +1,22 @@ +# $NetBSD: Makefile,v 1.1 2018/12/06 19:25:34 adam Exp $ + +DISTNAME= aniso8601-4.0.1 +PKGNAME= ${PYPKGPREFIX}-${DISTNAME} +CATEGORIES= time python +MASTER_SITES= ${MASTER_SITE_PYPI:=a/aniso8601/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://bitbucet.org/nielsenb/aniso8601 +COMMENT= Library for parsing ISO 8601 strings +LICENSE= modified-bsd + +DEPENDS+= ${PYPKGPREFIX}-dateutil>=2.6.1:../../time/py-dateutil +TEST_DEPENDS+= ${PYPKGPREFIX}-mock>=2.0.0:../../devel/py-mock + +USE_LANGUAGES= # none + +do-test: + cd ${WRKSRC}/aniso8601/tests && ${PYTHONBIN} -m unittest discover -v + +.include "../../lang/python/egg.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/time/py-aniso8601/PLIST b/time/py-aniso8601/PLIST new file mode 100644 index 00000000000..26d4b6403cc --- /dev/null +++ b/time/py-aniso8601/PLIST @@ -0,0 +1,36 @@ +@comment $NetBSD: PLIST,v 1.1 2018/12/06 19:25:34 adam Exp $ +${PYSITELIB}/${EGG_INFODIR}/PKG-INFO +${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt +${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt +${PYSITELIB}/${EGG_INFODIR}/requires.txt +${PYSITELIB}/${EGG_INFODIR}/top_level.txt +${PYSITELIB}/aniso8601/__init__.py +${PYSITELIB}/aniso8601/__init__.pyc +${PYSITELIB}/aniso8601/__init__.pyo +${PYSITELIB}/aniso8601/builder.py +${PYSITELIB}/aniso8601/builder.pyc +${PYSITELIB}/aniso8601/builder.pyo +${PYSITELIB}/aniso8601/compat.py +${PYSITELIB}/aniso8601/compat.pyc +${PYSITELIB}/aniso8601/compat.pyo +${PYSITELIB}/aniso8601/date.py +${PYSITELIB}/aniso8601/date.pyc +${PYSITELIB}/aniso8601/date.pyo +${PYSITELIB}/aniso8601/duration.py +${PYSITELIB}/aniso8601/duration.pyc +${PYSITELIB}/aniso8601/duration.pyo +${PYSITELIB}/aniso8601/exceptions.py +${PYSITELIB}/aniso8601/exceptions.pyc +${PYSITELIB}/aniso8601/exceptions.pyo +${PYSITELIB}/aniso8601/interval.py +${PYSITELIB}/aniso8601/interval.pyc +${PYSITELIB}/aniso8601/interval.pyo +${PYSITELIB}/aniso8601/resolution.py +${PYSITELIB}/aniso8601/resolution.pyc +${PYSITELIB}/aniso8601/resolution.pyo +${PYSITELIB}/aniso8601/time.py +${PYSITELIB}/aniso8601/time.pyc +${PYSITELIB}/aniso8601/time.pyo +${PYSITELIB}/aniso8601/timezone.py +${PYSITELIB}/aniso8601/timezone.pyc +${PYSITELIB}/aniso8601/timezone.pyo diff --git a/time/py-aniso8601/distinfo b/time/py-aniso8601/distinfo new file mode 100644 index 00000000000..12360f02542 --- /dev/null +++ b/time/py-aniso8601/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2018/12/06 19:25:34 adam Exp $ + +SHA1 (aniso8601-4.0.1.tar.gz) = 7a15052f386aa1c74f415570c694645282fc5ad0 +RMD160 (aniso8601-4.0.1.tar.gz) = b5dc34f4c3f2342a6a1b035cdcc6eb4582cfc87e +SHA512 (aniso8601-4.0.1.tar.gz) = 5638ebf82a1a1aceee866eb17e8e4b5c8023961a9e31ce3e12123b89dba0ea0924e10a6aa458c838fcfdb72b94af4e81b3e9e8805cb534a1eccaf5a51f2026c9 +Size (aniso8601-4.0.1.tar.gz) = 109849 bytes |