tzutils: tzdata provides python3-tzdata and py3:tzdata

according to the Python documentation[1], the `zoneinfo` module uses the
system timezone data if available, and also provides an installable `tzdata`
library on PyPi. Some Python packages (like pandas) spuriously always
depend on this library. By having `tzdata` provide this py3: package,
it would work around Python packages that make this mistake, and avoid
needing to package `python3-tzdata` or set `noverifypydeps` (which would
be overkill).

[1]: https://docs.python.org/3/library/zoneinfo.html

Close: #53607
This commit is contained in:
classabbyamp 2024-12-20 22:47:26 -05:00 committed by Đoàn Trần Công Danh
parent fa4e6e9564
commit d2a34adfd4

View file

@ -1,7 +1,7 @@
# Template file for 'tzutils'
pkgname=tzutils
version=2024a
revision=1
revision=2
bootstrap=yes
short_desc="Time zone and daylight-saving time utilities"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
@ -52,6 +52,7 @@ do_install() {
tzdata_package() {
short_desc="Time zone and daylight-saving time data"
provides="python3-tzdata-${version}_${revision} py3:tzdata-${version}"
pkg_install() {
vmove usr/share/man/man5
vmove "usr/share/zoneinfo*"