diff --git a/devel/Makefile b/devel/Makefile index a0baeda4685f..7f08ebfa6003 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -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 diff --git a/devel/py-holidays/Makefile b/devel/py-holidays/Makefile new file mode 100644 index 000000000000..29e3cbdcc4dc --- /dev/null +++ b/devel/py-holidays/Makefile @@ -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 diff --git a/devel/py-holidays/distinfo b/devel/py-holidays/distinfo new file mode 100644 index 000000000000..582e39edbabf --- /dev/null +++ b/devel/py-holidays/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1567193368 +SHA256 (holidays-0.9.11.tar.gz) = 915fdb92b596cfb66067010759b4384a9c6bc82931311d5bf07fe04920cc11bc +SIZE (holidays-0.9.11.tar.gz) = 81217 diff --git a/devel/py-holidays/pkg-descr b/devel/py-holidays/pkg-descr new file mode 100644 index 000000000000..9abc8d976e8c --- /dev/null +++ b/devel/py-holidays/pkg-descr @@ -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