Created attachment 526346 [details]
Current versions of python-dateutil provide a public API to a zoneinfo datafile normally provided with the package (at least if the package is installed via PyPI), see https://dateutil.readthedocs.io/en/stable/zoneinfo.html
This API breaks on gentoo since the zoneinfo datafile is not installed (on purpose?) by the current ebuilds.
Created attachment 526494 [details, diff]
This is my minimal patch to make this package use system tzdata. It passes all tests for me but it is not really upstreamable. If someone has a good idea how to make it possible to upstream support for system zoneinfo, I'd appreciate that.
Also, I'd appreciate testing it against real software as I only run the test suite and gettz() via CLI.
@sping, this (for python-dateutil) + the upstream nikola patch should fix the issue you were having. I'd appreciate if you could test it.
If the patch is not upstreamable we make future upgrades harder on ourselves. Is that patch the alternative to installing the tarball? Why avoid the trabll so hard, at what cost? Is it about size in bytes?
It is about using the up-to-date system terminfo database rather than relying on people to update the package (or even patch it) in order to be able to obtain the data they need.
The bug has been closed via the following commit(s):
Author: Michał Górny <email@example.com>
AuthorDate: 2018-04-20 11:47:58 +0000
Commit: Michał Górny <firstname.lastname@example.org>
CommitDate: 2018-04-20 11:51:32 +0000
dev-python/python-dateutil: Use system tzdata correctly
...info-Get-timezone-data-from-system-tzdata.patch | 104 +++++++++++++++++++++
.../python-dateutil-2.7.2-r1.ebuild | 49 ++++++++++
2 files changed, 153 insertions(+)