BSD Ports

devel/py-tzlocal 5.4.4 FreeBSD

Returns the tzinfo object for the local timezone

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
8028dbbb95
License
MIT
Categories
devel, python
Package size
35.4 KiB, 159.3 KiB installed

Description

This Python module returns a tzinfo object with the local timezone information under Unix and Win-32. It requires pytz, and returns pytz tzinfo objects.

This module attempts to fix a glaring hole in pytz, that there is no way to get the local timezone information, unless you know the zoneinfo name, and under several Linux distros that's hard or impossible to figure out.

In the other systems

SystemPortVersion
FreeBSDdevel/py-tzlocal5.4.4
OpenBSDdevel/py-tzlocal5.4.4
DragonFlydevel/py-tzlocal5.2

Install

Binary package:

pkg install py312-tzlocal

From the ports tree:

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

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

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

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:latest5.4.45.4.44.2_15.25.4.4
FreeBSD:14:quarterly5.4.45.4.4n/a5.25.4.4
FreeBSD:15:latest5.4.45.4.4n/a5.25.2
FreeBSD:15:quarterly5.4.45.4.4n/an/an/a
FreeBSD:16:latest5.4.45.4.4n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 2

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

Build dependencies 16
Run dependencies 7

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
tzlocal-5.4.4.tar.gz311708dbb8660838688a7b6ba4fed31d18dedf842afb4d47ca050d6d891c2c15f3be4
Master sites 1
  • PYPI

Commit history 2

DateCommitCreditsLog message
8028dbbb95 Michael Gmelin devel/py-tzlocal: Update to 5.4.4
This update was required to unbreak the port, as versions 5.4.1 and 5.4.2 were yanked by upstream due to not containing any files. See also: https://github.com/regebro/tzlocal/issues/179 PR: 296621, 296625 Reported by: Multiple users Approved by: blanket (runtime fix)
fea21bb789 Po-Chuan Hsieh devel/py-tzlocal: Update to 5.4.1
Changes: https://github.com/regebro/tzlocal/blob/master/CHANGES.txt