summaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authorbsiegert <bsiegert@pkgsrc.org>2019-07-07 10:14:44 +0000
committerbsiegert <bsiegert@pkgsrc.org>2019-07-07 10:14:44 +0000
commit44e37fe94acc641edd6c7bd0a50115d72b73f790 (patch)
tree216a09407a858705ac0d5dbe28e815d283059210 /time
parent3364520020b9a8bd6ac01ac9f3c842a882a356df (diff)
downloadpkgsrc-44e37fe94acc641edd6c7bd0a50115d72b73f790.tar.gz
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 (limited to 'time')
-rw-r--r--time/Makefile3
-rw-r--r--time/py-pytimeparse/DESCR14
-rw-r--r--time/py-pytimeparse/Makefile15
-rw-r--r--time/py-pytimeparse/PLIST18
-rw-r--r--time/py-pytimeparse/distinfo6
5 files changed, 55 insertions, 1 deletions
diff --git a/time/Makefile b/time/Makefile
index 6bc26968a28..c986f731570 100644
--- a/time/Makefile
+++ b/time/Makefile
@@ -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-monotonic
SUBDIR+= py-mxDateTime
SUBDIR+= py-parsedatetime
SUBDIR+= py-pendulum
+SUBDIR+= py-pytimeparse
SUBDIR+= py-pytz
SUBDIR+= py-relativetimebuilder
SUBDIR+= py-rfc3339
diff --git a/time/py-pytimeparse/DESCR b/time/py-pytimeparse/DESCR
new file mode 100644
index 00000000000..5b812092b18
--- /dev/null
+++ b/time/py-pytimeparse/DESCR
@@ -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 --git a/time/py-pytimeparse/Makefile b/time/py-pytimeparse/Makefile
new file mode 100644
index 00000000000..d47f3523ab6
--- /dev/null
+++ b/time/py-pytimeparse/Makefile
@@ -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
+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 --git a/time/py-pytimeparse/PLIST b/time/py-pytimeparse/PLIST
new file mode 100644
index 00000000000..64b7cbc7e50
--- /dev/null
+++ b/time/py-pytimeparse/PLIST
@@ -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 --git a/time/py-pytimeparse/distinfo b/time/py-pytimeparse/distinfo
new file mode 100644
index 00000000000..a80ad351aa6
--- /dev/null
+++ b/time/py-pytimeparse/distinfo
@@ -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