BSD Ports

devel/py-isoduration 20.11.0_1 MidnightBSD

Operations with ISO 8601 durations

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
Port added
Last update
Commit
b807d69740
License
iscl
Categories
devel, python

Description

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.

In the other systems

The newest version among them is 20.11.0, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
MidnightBSDdevel/py-isoduration20.11.0_1 newestno data-[email protected]2026-07-14
FreeBSDdevel/py-isoduration20.11.0_1 newestnone known-[email protected]-
OpenBSDdevel/py-isoduration20.11.0p2 newestno data-The OpenBSD ports mailing-list <[email protected]>-
DragonFlydevel/py-isoduration20.11.0_1 newestnone known-[email protected]-
HardenedBSDdevel/py-isoduration20.11.0_1 newestno data-[email protected]-
GhostBSDdevel/py-isoduration20.11.0_1 newestno data-[email protected]-

Compare across BSDs

Version history 1

  1. 20.11.0 b807d69740

Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.

Install

Binary package:

mport install ${PYTHON_PKGNAMEPREFIX}isoduration

From mports:

cd /usr/mports/devel/py-isoduration && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}isoduration>0:devel/py-isoduration

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

As this port's Makefile names them.

Build 2

Runtime 1

Build dependencies 2
Run dependencies 1
Required by 1

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
isoduration-20.11.0.tar.gz11649ac2f9015137935279eac671f94f89eb00584f940f5dc49462a0c4ee692ba1bd9
Master sites 1
  • PYPI

Commit history 1

DateCommitCreditsLog message
b807d69740 Lucas Holt Add LangChain AI ports and dependencies
AI-Assisted-by: OpenAI Codex <[email protected]> Signed-off-by: Lucas Holt <[email protected]>