BSD Ports

devel/py-isoduration 20.11.0_1 FreeBSD

Operations with ISO 8601 durations

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
ISCL
Categories
devel, python
Package size
20.0 KiB, 75.0 KiB installed

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

SystemPortVersion
FreeBSDdevel/py-isoduration20.11.0_1
OpenBSDdevel/py-isoduration20.11.0p2
DragonFlydevel/py-isoduration20.11.0_1
MidnightBSDdevel/py-isoduration20.11.0_1
HardenedBSDdevel/py-isoduration20.11.0_1
GhostBSDdevel/py-isoduration20.11.0_1

Install

Binary package:

pkg install py312-isoduration

From the ports tree:

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

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

RUN_DEPENDS=	py312-isoduration>0:devel/py-isoduration

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest20.11.0_120.11.0_1-20.11.0_120.11.0_1
FreeBSD:14:quarterly20.11.0_120.11.0_1n/a20.11.0_120.11.0_1
FreeBSD:15:latest20.11.0_120.11.0_1n/a20.11.0_120.11.0_1
FreeBSD:15:quarterly20.11.0_120.11.0_1n/an/an/a
FreeBSD:16:latest20.11.0_120.11.0_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 2

Runtime 1

The full lists below include those, and their dependencies in turn.

Build dependencies 16
Run dependencies 11

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 0

No commits in the history this site was built from.