svn commit: r510954 - in head/devel: . py-holidays

Dan Langille dvl at FreeBSD.org
Tue Sep 3 15:45:10 UTC 2019


Author: dvl
Date: Tue Sep  3 15:45:09 2019
New Revision: 510954
URL: https://svnweb.freebsd.org/changeset/ports/510954

Log:
  Add a Python library for generating country, province and state specific sets
  of holidays on the fly.
  
  Submitted by:	Gilbert Morgan <gmm at tutanota.com> (via private email)

Added:
  head/devel/py-holidays/
  head/devel/py-holidays/Makefile   (contents, props changed)
  head/devel/py-holidays/distinfo   (contents, props changed)
  head/devel/py-holidays/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Tue Sep  3 15:39:57 2019	(r510953)
+++ head/devel/Makefile	Tue Sep  3 15:45:09 2019	(r510954)
@@ -4493,6 +4493,7 @@
     SUBDIR += py-hghooks
     SUBDIR += py-hgsubversion
     SUBDIR += py-hgtools
+    SUBDIR += py-holidays
     SUBDIR += py-http-prompt
     SUBDIR += py-humanize
     SUBDIR += py-hypothesis

Added: head/devel/py-holidays/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-holidays/Makefile	Tue Sep  3 15:45:09 2019	(r510954)
@@ -0,0 +1,22 @@
+# $FreeBSD$
+
+PORTNAME=	holidays
+PORTVERSION=	0.9.11
+CATEGORIES=	devel
+MASTER_SITES=	https://files.pythonhosted.org/packages/d0/17/a452275a0b3e811a381137ff6a61649086af4c5bf2a25755f518cc64b39e/
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	gmm at tutanota.com
+COMMENT=	Generate country, province, & state specific holiday sets on the fly
+
+LICENSE=	MIT
+
+USES=		python
+USE_PYTHON=	autoplist distutils
+
+BUILD_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}
+BUILD_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dateutil>0:devel/py-dateutil@${PY_FLAVOR}
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>

Added: head/devel/py-holidays/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-holidays/distinfo	Tue Sep  3 15:45:09 2019	(r510954)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1567193368
+SHA256 (holidays-0.9.11.tar.gz) = 915fdb92b596cfb66067010759b4384a9c6bc82931311d5bf07fe04920cc11bc
+SIZE (holidays-0.9.11.tar.gz) = 81217

Added: head/devel/py-holidays/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-holidays/pkg-descr	Tue Sep  3 15:45:09 2019	(r510954)
@@ -0,0 +1,11 @@
+A fast, efficient Python library for generating country, province and state
+specific sets of holidays on the fly. It aims to make determining whether a
+specific date is a holiday as fast and flexible as possible.
+
+from datetime import date
+import holidays
+
+date(2015, 1, 1) in us_holidays  # True
+date(2015, 1, 2) in us_holidays  # False
+
+WWW: https://github.com/dr-prodigy/python-holidays


More information about the svn-ports-all mailing list