mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
[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
This commit is contained in:
parent
3e874726e4
commit
2f3e039947
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=361734
@ -3688,6 +3688,7 @@
|
||||
SUBDIR += py-interface
|
||||
SUBDIR += py-ipaddr
|
||||
SUBDIR += py-ipdb
|
||||
SUBDIR += py-iso8601
|
||||
SUBDIR += py-isodate
|
||||
SUBDIR += py-iterpipes
|
||||
SUBDIR += py-itools
|
||||
|
30
devel/py-iso8601/Makefile
Normal file
30
devel/py-iso8601/Makefile
Normal file
@ -0,0 +1,30 @@
|
||||
# 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>
|
2
devel/py-iso8601/distinfo
Normal file
2
devel/py-iso8601/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (iso8601-0.1.10.tar.gz) = e712ff3a18604833f5073e836aad795b21170b19bbef70947c441ed89d0ac0e1
|
||||
SIZE (iso8601-0.1.10.tar.gz) = 8405
|
8
devel/py-iso8601/pkg-descr
Normal file
8
devel/py-iso8601/pkg-descr
Normal file
@ -0,0 +1,8 @@
|
||||
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
|
Loading…
Reference in New Issue
Block a user