pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/time py-aniso8601: added version 4.0.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fb5bfb6a1ba7
branches:  trunk
changeset: 326432:fb5bfb6a1ba7
user:      adam <adam%pkgsrc.org@localhost>
date:      Thu Dec 06 19:25:33 2018 +0000

description:
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:

 time/Makefile              |   3 ++-
 time/py-aniso8601/DESCR    |  16 ++++++++++++++++
 time/py-aniso8601/Makefile |  22 ++++++++++++++++++++++
 time/py-aniso8601/PLIST    |  36 ++++++++++++++++++++++++++++++++++++
 time/py-aniso8601/distinfo |   6 ++++++
 5 files changed, 82 insertions(+), 1 deletions(-)

diffs (113 lines):

diff -r 540ad2092169 -r fb5bfb6a1ba7 time/Makefile
--- a/time/Makefile     Thu Dec 06 15:38:50 2018 +0000
+++ b/time/Makefile     Thu Dec 06 19:25:33 2018 +0000
@@ -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+=       polclock
 SUBDIR+=       projclock
 SUBDIR+=       projectlibre
+SUBDIR+=       py-aniso8601
 SUBDIR+=       py-arrow
 SUBDIR+=       py-dateparser
 SUBDIR+=       py-dateutil
diff -r 540ad2092169 -r fb5bfb6a1ba7 time/py-aniso8601/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/py-aniso8601/DESCR   Thu Dec 06 19:25:33 2018 +0000
@@ -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 -r 540ad2092169 -r fb5bfb6a1ba7 time/py-aniso8601/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/py-aniso8601/Makefile        Thu Dec 06 19:25:33 2018 +0000
@@ -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@localhost
+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 -r 540ad2092169 -r fb5bfb6a1ba7 time/py-aniso8601/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/py-aniso8601/PLIST   Thu Dec 06 19:25:33 2018 +0000
@@ -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 -r 540ad2092169 -r fb5bfb6a1ba7 time/py-aniso8601/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/py-aniso8601/distinfo        Thu Dec 06 19:25:33 2018 +0000
@@ -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



Home | Main Index | Thread Index | Old Index