pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/time Add a package for py-pytimeparse-1.1.8.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/df5a87602688
branches:  trunk
changeset: 397927:df5a87602688
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Sun Jul 07 10:14:44 2019 +0000

description:
Add a package for py-pytimeparse-1.1.8.

PR pkg/54340.

A small Python library to parse various kinds of time expressions,
inspired by a StackOverflow question.

The single function pytimeparse.timeparse.timeparse defined in the
library (also available as pytimeparse.parse) parses time expressions
like the following:

    32m
    2h32m
    3d2h32m
    1w3d2h32m
    1w 3d 2h 32m
    1 w 3 d 2 h 32 m
    ...

diffstat:

 time/Makefile                |   3 ++-
 time/py-pytimeparse/DESCR    |  14 ++++++++++++++
 time/py-pytimeparse/Makefile |  15 +++++++++++++++
 time/py-pytimeparse/PLIST    |  18 ++++++++++++++++++
 time/py-pytimeparse/distinfo |   6 ++++++
 5 files changed, 55 insertions(+), 1 deletions(-)

diffs (86 lines):

diff -r 9b646ae2c4f3 -r df5a87602688 time/Makefile
--- a/time/Makefile     Sun Jul 07 09:44:15 2019 +0000
+++ b/time/Makefile     Sun Jul 07 10:14:44 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.185 2019/07/01 16:07:29 jaapb Exp $
+# $NetBSD: Makefile,v 1.186 2019/07/07 10:14:44 bsiegert Exp $
 #
 
 COMMENT=       Clocks, calendars, daily planners and other time related applications
@@ -149,6 +149,7 @@
 SUBDIR+=       py-mxDateTime
 SUBDIR+=       py-parsedatetime
 SUBDIR+=       py-pendulum
+SUBDIR+=       py-pytimeparse
 SUBDIR+=       py-pytz
 SUBDIR+=       py-relativetimebuilder
 SUBDIR+=       py-rfc3339
diff -r 9b646ae2c4f3 -r df5a87602688 time/py-pytimeparse/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/py-pytimeparse/DESCR Sun Jul 07 10:14:44 2019 +0000
@@ -0,0 +1,14 @@
+A small Python library to parse various kinds of time expressions,
+inspired by a StackOverflow question.
+
+The single function pytimeparse.timeparse.timeparse defined in the
+library (also available as pytimeparse.parse) parses time expressions
+like the following:
+
+    32m
+    2h32m
+    3d2h32m
+    1w3d2h32m
+    1w 3d 2h 32m
+    1 w 3 d 2 h 32 m
+    ...
diff -r 9b646ae2c4f3 -r df5a87602688 time/py-pytimeparse/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/py-pytimeparse/Makefile      Sun Jul 07 10:14:44 2019 +0000
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1 2019/07/07 10:14:44 bsiegert Exp $
+
+DISTNAME=               pytimeparse-1.1.8
+PKGNAME=                ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=             python time
+MASTER_SITES=           ${MASTER_SITE_PYPI:=p/pytimeparse/}
+
+MAINTAINER=             pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=               https://timeparse.readthedocs.io/
+COMMENT=                Parse various kinds of time expressions
+LICENSE=                mit
+
+.include "../../lang/python/application.mk"
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 9b646ae2c4f3 -r df5a87602688 time/py-pytimeparse/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/py-pytimeparse/PLIST Sun Jul 07 10:14:44 2019 +0000
@@ -0,0 +1,18 @@
+@comment $NetBSD: PLIST,v 1.1 2019/07/07 10:14:44 bsiegert Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/pytimeparse/VERSION
+${PYSITELIB}/pytimeparse/__init__.py
+${PYSITELIB}/pytimeparse/__init__.pyc
+${PYSITELIB}/pytimeparse/__init__.pyo
+${PYSITELIB}/pytimeparse/tests/__init__.py
+${PYSITELIB}/pytimeparse/tests/__init__.pyc
+${PYSITELIB}/pytimeparse/tests/__init__.pyo
+${PYSITELIB}/pytimeparse/tests/testtimeparse.py
+${PYSITELIB}/pytimeparse/tests/testtimeparse.pyc
+${PYSITELIB}/pytimeparse/tests/testtimeparse.pyo
+${PYSITELIB}/pytimeparse/timeparse.py
+${PYSITELIB}/pytimeparse/timeparse.pyc
+${PYSITELIB}/pytimeparse/timeparse.pyo
diff -r 9b646ae2c4f3 -r df5a87602688 time/py-pytimeparse/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/py-pytimeparse/distinfo      Sun Jul 07 10:14:44 2019 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2019/07/07 10:14:44 bsiegert Exp $
+
+SHA1 (pytimeparse-1.1.8.tar.gz) = deccf1128b05e4c54bd465bdd0dca7db03dbfa11
+RMD160 (pytimeparse-1.1.8.tar.gz) = e56358a299e95b6593e39f2b57013a4157a412b0
+SHA512 (pytimeparse-1.1.8.tar.gz) = 9eb4530d779b940d66412920eefa4f4d3c43719aa3e4104da4f337c05421bcbb6ad4cb2d6459ddfac770fc9f19960a9d8ce578e67f2513499a7bee8efe9541ec
+Size (pytimeparse-1.1.8.tar.gz) = 9403 bytes



Home | Main Index | Thread Index | Old Index