-
-
Notifications
You must be signed in to change notification settings - Fork 17.7k
Closed
Labels
0.kind: build failureA package fails to buildA package fails to build
Description
Nixpkgs version
- Stable (25.11)
Steps to reproduce
The build fails because one of dateparser's tests only passes if the current year is 2025.
So, in the year 2026, I can trigger it with the following command:
nix build --rebuild github:NixOS/nixpkgs/nixos-25.11#python313Packages.dateparser
Can Hydra reproduce this build failure?
Yes, Hydra can reproduce this build failure.
Link to Hydra build job
https://hydra.nixos.org/build/318556828
Relevant log output
=================================== FAILURES ===================================
___________ TestTranslateSearch.test_search_dates_with_prepositions ____________
self = <tests.test_search.TestTranslateSearch testMethod=test_search_dates_with_prepositions>
def test_search_dates_with_prepositions(self):
"""Test `search_dates` for parsing Russian date ranges with prepositions and language detection."""
result = search_dates(
"Сервис будет недоступен с 12 января по 30 апреля.",
add_detected_language=True,
languages=["ru"],
)
expected = [
("12 января", datetime.datetime(2025, 1, 12, 0, 0), "ru"),
("30 апреля", datetime.datetime(2025, 4, 30, 0, 0), "ru"),
]
> assert result == expected
^^^^^^^^^^^^^^^^^^
E AssertionError
/nix/var/nix/builds/nix-92841-4029576490/source/tests/test_search.py:1105: AssertionErrorAdditional context
This has already been fixed in the master branch of the dateparser repo, but I'm not sure when the next release will be cut.
My recommendation would be to simply add the offending test "test_search_dates_with_prepositions" to the list of disabled tests.
System metadata
- system:
"x86_64-linux" - host os:
Linux 6.12.63, NixOS, 25.11 (Xantusia), 25.11.20251229.89dbf01 - multi-user?:
yes - sandbox:
yes - version:
nix-env (Nix) 2.31.2 - nixpkgs:
/nix/store/rv4z0vd7v0pkadinxd1c1xmd4b850ldr-source
Notify maintainers
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)
I assert that this issue is relevant for Nixpkgs
- I assert that this is a bug and not a support request.
- I assert that this is not a duplicate of an existing issue.
- I assert that I have read the NixOS Code of Conduct and agree to abide by it.
Is this issue important to you?
Add a 👍 reaction to issues you find important.
KNOXDEV
Metadata
Metadata
Assignees
Labels
0.kind: build failureA package fails to buildA package fails to build