freebsd-ports/devel/py-isoduration/Makefile
Po-Chuan Hsieh 66e0f308ab
devel/py-isoduration: Add py-isoduration 20.11.0
ISO 8601 is most commonly known as a way to exchange datetimes in textual
format. A lesser known aspect of the standard is the representation of
durations. They have a shape similar to this:
    P3Y6M4DT12H30M5S
This string represents a duration of 3 years, 6 months, 4 days, 12 hours, 30
minutes, and 5 seconds.

The state of the art of ISO 8601 duration handling in Python is more or less
limited to what's offered by isodate. What we are trying to achieve here is to
address the shortcomings of isodate (as described in their own Limitations
section), and a few of our own annoyances with their interface, such as the lack
of uniformity in their handling of types, and the use of regular expressions for
parsing.
2023-03-22 03:19:51 +08:00

21 lines
475 B
Makefile

PORTNAME= isoduration
PORTVERSION= 20.11.0
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Operations with ISO 8601 durations
WWW= https://github.com/bolsote/isoduration
LICENSE= ISCL
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}arrow>=0.15.0:devel/py-arrow@${PY_FLAVOR}
USES= python:3.7+
USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
.include <bsd.port.mk>