Add a Python library for generating country, province and state specific sets

of holidays on the fly.

Submitted by:	Gilbert Morgan <gmm@tutanota.com> (via private email)
This commit is contained in:
dvl
2019-09-03 15:45:09 +00:00
parent 9dc6fff993
commit 464aaa29c1
4 changed files with 37 additions and 0 deletions
+1
View File
@@ -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
+22
View File
@@ -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@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>
+3
View File
@@ -0,0 +1,3 @@
TIMESTAMP = 1567193368
SHA256 (holidays-0.9.11.tar.gz) = 915fdb92b596cfb66067010759b4384a9c6bc82931311d5bf07fe04920cc11bc
SIZE (holidays-0.9.11.tar.gz) = 81217
+11
View File
@@ -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