time/py-pytz_deprecation_shim 0.1.0.0nb2 NetBSD
Shims to make deprecation of pytz easier
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- License
- apache-2.0
- Categories
- time, python
- Package size
- 21.5 KiB, 85.8 KiB installed
Description
pytz has served the Python community well for many years, but it is no longer the best option for providing time zones. pytz has a non-standard interface that is very easy to misuse; this interface was necessary when pytz was created, because datetime had no way to represent ambiguous datetimes, but this was solved in in Python 3.6, which added a fold attribute to datetimes in PEP 495. With the addition of the zoneinfo module in Python 3.9 (PEP 615), there has never been a better time to migrate away from pytz.
However, since pytz time zones are used very differently from a standard tzinfo, and many libraries have built pytz zones into their standard time zone interface (and thus may have users relying on the existence of the localize and normalize methods); this library provides shim classes that are compatible with both PEP 495 and pytz's interface, to make it easier for libraries to deprecate pytz.
Install
Binary package:
pkgin install py311-pytz_deprecation_shim
From pkgsrc:
cd /usr/pkgsrc/time/py-pytz_deprecation_shim && make install clean
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 0.1.0.0nb2 |
| NetBSD 10.1 aarch64 | 0.1.0.0nb2 |
| SmartOS / illumos x86_64 | 0.1.0.0nb2 |
| macOS 15 arm64 | 0.1.0.0nb2 |
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
Run dependencies 1
No port depends on this one.
Configuration
No options to configure.
- Service scripts
- none
- Flavors
py312-pytz_deprecation_shim-0.1.0.0nb2,py313-pytz_deprecation_shim-0.1.0.0nb2,py314-pytz_deprecation_shim-0.1.0.0nb2