| 6 Apr 2025 |
@hexa:lossy.network | and ical consumes the python version | 17:57:22 |
@hexa:lossy.network | are you mixing channels? | 17:57:49 |
Geoffrey Frogeye | On unstable it's fine because the bump of both tzdata are happening in the same staging batch (not sure that's the right terminology), it's a 24.11-only problem. | 17:58:31 |
@hexa:lossy.network | oh, python itself depends on tzdata | 17:58:45 |
@hexa:lossy.network |
ical> E FileNotFoundError: [Errno 2] No such file or directory: '/nix/store/zpkj9lmgkrcinkwa9k458viszgmncx29-python3.12-tzdata-2024.2/lib/python3.12/site-packages/tzdata/zoneinfo/America/Coyhaique'
| 18:01:03 |
@hexa:lossy.network | so it clearly looks into the python tzdata package | 18:01:12 |
@hexa:lossy.network | which has not been bumped | 18:01:36 |
@hexa:lossy.network | and neither has ical been bumped | 18:01:42 |
Geoffrey Frogeye | ical can survive without being bumped | 18:02:14 |
@hexa:lossy.network | I am thoroughly confused how this started failing | 18:02:16 |
@hexa:lossy.network | python3.pkgs.ical reads zone information from python3.pkgs.tzdata | 18:02:37 |
@hexa:lossy.network | neither were updated, but now python3.pkgs.ical fails to test | 18:02:48 |
@hexa:lossy.network | instead tzdata was updated | 18:02:57 |
Geoffrey Frogeye | I haven't dug too much there, but I think: the list of timezones is provided by pkgs.tzdata. But python3.pkgs.ical does tests which requires additional data provided by python3.pkgs.tzdata? | 18:04:02 |
@hexa:lossy.network | either way, bumping python3.pkgs.tzdata will take 2-3 weeks at least | 18:06:09 |
@hexa:lossy.network | https://wiki.nixos.org/wiki/Home_Assistant#Tracking_the_latest_release | 18:08:25 |
@hexa:lossy.network | you can use this snippet to track the latest release from unstable instead for the time being | 18:08:38 |
Geoffrey Frogeye | I'm using this hack that requires no recompilation for my own setup, the PR was just so others didn't run into the same issue :)
nixpkgs.overlays = [
(final: prev: {
pythonPackagesExtensions = (prev.pythonPackagesExtensions or [ ]) ++ [
(pfinal: pprev: {
ical = pprev.ical.override {
tzdata = pprev.tzdata.overrideAttrs (
tfinal: tprev: rec {
pname = "tzdata";
version = "2025.2";
src = prev.fetchPypi {
inherit pname version;
hash = "sha256-tgpjj8wNr/rfgv4PV+U9Br3sLzbE32YoCuebzmvW8rk=";
};
}
);
};
})
];
})
];
| 18:09:10 |
@hexa:lossy.network | pytz also ships a timezone db 🥳 | 18:09:50 |
Geoffrey Frogeye | Yeah, I get that I'm probably alone running Home Assistant on stable, but given I use almost 0 cloud services it's been quite stable :) | 18:11:26 |
Geoffrey Frogeye | Is it still worth bumping python3.pkgs.tzdata... even if it will fix 24.11 for a whole month before it gets deprecated? | 18:12:50 |
@hexa:lossy.network | the question is what other packages we'll need to bump | 18:26:51 |
@hexa:lossy.network | because they need to stay in sync | 18:26:56 |
@hexa:lossy.network | so I'd much rather just disable the relevant test on ical | 18:27:03 |
@hexa:lossy.network | much saafer | 18:27:07 |
@hexa:lossy.network | * much safer | 18:27:10 |
@hexa:lossy.network | https://github.com/NixOS/nixpkgs/pull/396626\ | 18:47:24 |
@hexa:lossy.network | * https://github.com/NixOS/nixpkgs/pull/396626 | 18:47:26 |
@hexa:lossy.network | let's see if this is meaningfully smaller | 18:47:31 |
Geoffrey Frogeye | Ah, I was also working on a PR, you beat me to it :D | 18:48:21 |