summaryrefslogtreecommitdiff
path: root/time/py-tzlocal/Makefile
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2015-02-04 11:41:09 +0000
committerwiz <wiz@pkgsrc.org>2015-02-04 11:41:09 +0000
commitb1e7d9e2e077239137f9697c3064ca2b12bb5d9e (patch)
tree1db0ee3c76b5127d9b228b254b406816527dbb98 /time/py-tzlocal/Makefile
parente501da0da0dbc3b8a25a36d30ace41164e9f898c (diff)
downloadpkgsrc-b1e7d9e2e077239137f9697c3064ca2b12bb5d9e.tar.gz
Import py34-tzlocal-1.1.2 as time/py-tzlocal.
This Python module returns a tzinfo object with the local timezone information under Unix and Win-32. It requires pytz, and returns pytz tzinfo objects. This module attempts to fix a glaring hole in pytz, that there is no way to get the local timezone information, unless you know the zoneinfo name, and under several Linux distros that's hard or impossible to figure out. Also, with Windows different timezone system using pytz isn't of much use unless you separately configure the zoneinfo timezone name. With tzlocal you only need to call get_localzone() and you will get a tzinfo object with the local time zone info. On some Unices you will still not get to know what the timezone name is, but you don't need that when you have the tzinfo file. However, if the timezone name is readily available it will be used.
Diffstat (limited to 'time/py-tzlocal/Makefile')
-rw-r--r--time/py-tzlocal/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/time/py-tzlocal/Makefile b/time/py-tzlocal/Makefile
new file mode 100644
index 00000000000..db5708f5c1d
--- /dev/null
+++ b/time/py-tzlocal/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2015/02/04 11:41:09 wiz Exp $
+
+DISTNAME= tzlocal-1.1.2
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= time python
+MASTER_SITES= http://pypi.python.org/packages/source/t/tzlocal/
+EXTRACT_SUFX= .zip
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://pypi.python.org/pypi/tzlocal
+COMMENT= Python tzinfo object for the local timezone
+LICENSE= public-domain
+
+DEPENDS+= ${PYPKGPREFIX}-pytz-[0-9]*:../../time/py-pytz
+
+USE_LANGUAGES= # none
+
+.include "../../lang/python/application.mk"
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"