Skip to content

Commit

Permalink
tzutils: tzdata provides python3-tzdata and py3:tzdata
Browse files Browse the repository at this point in the history
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
  • Loading branch information
classabbyamp authored and sgn committed Dec 23, 2024
1 parent fa4e6e9 commit d2a34ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion srcpkgs/tzutils/template
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"
Expand Down Expand Up @@ -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*"
Expand Down

0 comments on commit d2a34ad

Please sign in to comment.