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
30 lines
641 B
Makefile
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>
|