freebsd-ports/devel/py-iso8601/Makefile
Kubilay Kocak 2f3e039947 [NEW] devel/py-iso8601: Simple module to parse ISO 8601 dates
This module parses the most common forms of ISO 8601 date strings
(e.g. 2007-01-14T20:34:22+00:00) into datetime objects.

You can parse full date + times, or just the date. In both cases a datetime
instance is returned but with missing times defaulting to 0, and missing
days / months defaulting to 1.

WWW: https://bitbucket.org/micktwomey/pyiso8601
2014-07-14 04:41:22 +00:00

30 lines
641 B
Makefile

# Created by: Kubilay Kocak <koobs@FreeBSD.org>
# $FreeBSD$
PORTNAME= iso8601
PORTVERSION= 0.1.10
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= koobs@FreeBSD.org
COMMENT= Simple module to parse ISO 8601 dates
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=2.4.2:${PORTSDIR}/devel/py-pytest
OPTIONS_DEFINE= TESTS
TESTS_DESC= Install tools to run test suite
TESTS_BUILD_DEPENDS= ${TEST_DEPENDS}
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_AUTOPLIST= yes
regression-test: extract
@cd ${WRKSRC} && py.test
.include <bsd.port.mk>