From owner-svn-ports-head@freebsd.org Tue Sep 3 15:45:10 2019 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AB1C6DF596; Tue, 3 Sep 2019 15:45:10 +0000 (UTC) (envelope-from dvl@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46NB9L45XYz3FPs; Tue, 3 Sep 2019 15:45:10 +0000 (UTC) (envelope-from dvl@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5777151DB; Tue, 3 Sep 2019 15:45:10 +0000 (UTC) (envelope-from dvl@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x83FjALK015109; Tue, 3 Sep 2019 15:45:10 GMT (envelope-from dvl@FreeBSD.org) Received: (from dvl@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x83Fj9X9015105; Tue, 3 Sep 2019 15:45:09 GMT (envelope-from dvl@FreeBSD.org) Message-Id: <201909031545.x83Fj9X9015105@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dvl set sender to dvl@FreeBSD.org using -f From: Dan Langille Date: Tue, 3 Sep 2019 15:45:09 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r510954 - in head/devel: . py-holidays X-SVN-Group: ports-head X-SVN-Commit-Author: dvl X-SVN-Commit-Paths: in head/devel: . py-holidays X-SVN-Commit-Revision: 510954 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Sep 2019 15:45:10 -0000 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 (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@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 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