diff options
author | rodent <rodent@pkgsrc.org> | 2015-04-19 21:27:58 +0000 |
---|---|---|
committer | rodent <rodent@pkgsrc.org> | 2015-04-19 21:27:58 +0000 |
commit | 53ad655f4ec97bf690df9fa706b02a3afbda712b (patch) | |
tree | 5d9816cfc85492607c4f4d778d05d5476b0c71a7 /time | |
parent | 3ce9553b2699cffd87cbd971a93b4a0dae31d026 (diff) | |
download | pkgsrc-53ad655f4ec97bf690df9fa706b02a3afbda712b.tar.gz |
Import py27-isodate-0.5.1 as time/py-isodate.
This module implements ISO 8601 date, time and duration parsing. The
implementation follows ISO8601:2004 standard, and implements only date/time
representations mentioned in the standard. If something is not mentioned there,
then it is treated as non existent, and not as an allowed option.
For instance, ISO8601:2004 never mentions 2 digit years. So, it is not intended
by this module to support 2 digit years. (while it may still be valid as ISO
date, because it is not explicitly forbidden.) Another example is, when no time
zone information is given for a time, then it should be interpreted as local
time, and not UTC.
As this module maps ISO 8601 dates/times to standard Python data types, like
date, time, datetime and timedelta, it is not possible to convert all possible
ISO 8601 dates/times. For instance, dates before 0001-01-01 are not allowed by
the Python date and datetime classes. Additionally fractional seconds are
limited to microseconds. That means if the parser finds for instance nanoseconds
it will round it to microseconds.
Diffstat (limited to 'time')
-rw-r--r-- | time/py-isodate/DESCR | 17 | ||||
-rw-r--r-- | time/py-isodate/Makefile | 19 | ||||
-rw-r--r-- | time/py-isodate/PLIST | 56 | ||||
-rw-r--r-- | time/py-isodate/distinfo | 5 |
4 files changed, 97 insertions, 0 deletions
diff --git a/time/py-isodate/DESCR b/time/py-isodate/DESCR new file mode 100644 index 00000000000..1ac495e9b3f --- /dev/null +++ b/time/py-isodate/DESCR @@ -0,0 +1,17 @@ +This module implements ISO 8601 date, time and duration parsing. The +implementation follows ISO8601:2004 standard, and implements only date/time +representations mentioned in the standard. If something is not mentioned there, +then it is treated as non existent, and not as an allowed option. + +For instance, ISO8601:2004 never mentions 2 digit years. So, it is not intended +by this module to support 2 digit years. (while it may still be valid as ISO +date, because it is not explicitly forbidden.) Another example is, when no time +zone information is given for a time, then it should be interpreted as local +time, and not UTC. + +As this module maps ISO 8601 dates/times to standard Python data types, like +date, time, datetime and timedelta, it is not possible to convert all possible +ISO 8601 dates/times. For instance, dates before 0001-01-01 are not allowed by +the Python date and datetime classes. Additionally fractional seconds are +limited to microseconds. That means if the parser finds for instance nanoseconds +it will round it to microseconds. diff --git a/time/py-isodate/Makefile b/time/py-isodate/Makefile new file mode 100644 index 00000000000..9595a65302f --- /dev/null +++ b/time/py-isodate/Makefile @@ -0,0 +1,19 @@ +# $NetBSD: Makefile,v 1.1 2015/04/19 21:27:58 rodent Exp $ + +DISTNAME= isodate-0.5.1 +PKGNAME= ${PYPKGPREFIX}-${DISTNAME} +CATEGORIES= python time +MASTER_SITES= https://pypi.python.org/packages/source/i/isodate/ + +MAINTAINER= kamelderouiche@yahoo.com +HOMEPAGE= http://cheeseshop.python.org/pypi/isodate +COMMENT= ISO 8601 date/time/duration parser and formatter +LICENSE= modified-bsd + +USE_LANGUAGES= # none + +do-test: + ${RUN} cd ${WRKSRC}/src/isodate/tests; ${SETENV} ${TEST_ENV} ${PYTHONBIN} __init__.py + +.include "../../lang/python/egg.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/time/py-isodate/PLIST b/time/py-isodate/PLIST new file mode 100644 index 00000000000..4e49c379eaf --- /dev/null +++ b/time/py-isodate/PLIST @@ -0,0 +1,56 @@ +@comment $NetBSD: PLIST,v 1.1 2015/04/19 21:27:58 rodent Exp $ +${PYSITELIB}/${EGG_INFODIR}/PKG-INFO +${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt +${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt +${PYSITELIB}/${EGG_INFODIR}/top_level.txt +${PYSITELIB}/isodate/__init__.py +${PYSITELIB}/isodate/__init__.pyc +${PYSITELIB}/isodate/__init__.pyo +${PYSITELIB}/isodate/duration.py +${PYSITELIB}/isodate/duration.pyc +${PYSITELIB}/isodate/duration.pyo +${PYSITELIB}/isodate/isodates.py +${PYSITELIB}/isodate/isodates.pyc +${PYSITELIB}/isodate/isodates.pyo +${PYSITELIB}/isodate/isodatetime.py +${PYSITELIB}/isodate/isodatetime.pyc +${PYSITELIB}/isodate/isodatetime.pyo +${PYSITELIB}/isodate/isoduration.py +${PYSITELIB}/isodate/isoduration.pyc +${PYSITELIB}/isodate/isoduration.pyo +${PYSITELIB}/isodate/isoerror.py +${PYSITELIB}/isodate/isoerror.pyc +${PYSITELIB}/isodate/isoerror.pyo +${PYSITELIB}/isodate/isostrf.py +${PYSITELIB}/isodate/isostrf.pyc +${PYSITELIB}/isodate/isostrf.pyo +${PYSITELIB}/isodate/isotime.py +${PYSITELIB}/isodate/isotime.pyc +${PYSITELIB}/isodate/isotime.pyo +${PYSITELIB}/isodate/isotzinfo.py +${PYSITELIB}/isodate/isotzinfo.pyc +${PYSITELIB}/isodate/isotzinfo.pyo +${PYSITELIB}/isodate/tests/__init__.py +${PYSITELIB}/isodate/tests/__init__.pyc +${PYSITELIB}/isodate/tests/__init__.pyo +${PYSITELIB}/isodate/tests/test_date.py +${PYSITELIB}/isodate/tests/test_date.pyc +${PYSITELIB}/isodate/tests/test_date.pyo +${PYSITELIB}/isodate/tests/test_datetime.py +${PYSITELIB}/isodate/tests/test_datetime.pyc +${PYSITELIB}/isodate/tests/test_datetime.pyo +${PYSITELIB}/isodate/tests/test_duration.py +${PYSITELIB}/isodate/tests/test_duration.pyc +${PYSITELIB}/isodate/tests/test_duration.pyo +${PYSITELIB}/isodate/tests/test_pickle.py +${PYSITELIB}/isodate/tests/test_pickle.pyc +${PYSITELIB}/isodate/tests/test_pickle.pyo +${PYSITELIB}/isodate/tests/test_strf.py +${PYSITELIB}/isodate/tests/test_strf.pyc +${PYSITELIB}/isodate/tests/test_strf.pyo +${PYSITELIB}/isodate/tests/test_time.py +${PYSITELIB}/isodate/tests/test_time.pyc +${PYSITELIB}/isodate/tests/test_time.pyo +${PYSITELIB}/isodate/tzinfo.py +${PYSITELIB}/isodate/tzinfo.pyc +${PYSITELIB}/isodate/tzinfo.pyo diff --git a/time/py-isodate/distinfo b/time/py-isodate/distinfo new file mode 100644 index 00000000000..6c0f5b7458b --- /dev/null +++ b/time/py-isodate/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1 2015/04/19 21:27:58 rodent Exp $ + +SHA1 (isodate-0.5.1.tar.gz) = b4ee406451fbc95cf12beac368a7155704c52635 +RMD160 (isodate-0.5.1.tar.gz) = b8d10643027b172f6841d255ab086085bdc70b42 +Size (isodate-0.5.1.tar.gz) = 26859 bytes |