diff --git a/happy-new-year.patch b/happy-new-year.patch new file mode 100644 index 0000000..432780a --- /dev/null +++ b/happy-new-year.patch @@ -0,0 +1,14 @@ +Index: dateparser-1.2.2/tests/test_search.py +=================================================================== +--- dateparser-1.2.2.orig/tests/test_search.py ++++ dateparser-1.2.2/tests/test_search.py +@@ -1099,7 +1099,7 @@ class TestTranslateSearch(BaseTestCase): + languages=["ru"], + ) + expected = [ +- ("12 января", datetime.datetime(2025, 1, 12, 0, 0), "ru"), +- ("30 апреля", datetime.datetime(2025, 4, 30, 0, 0), "ru"), ++ ("12 января", datetime.datetime(today.year, 1, 12, 0, 0), "ru"), ++ ("30 апреля", datetime.datetime(today.year, 4, 30, 0, 0), "ru"), + ] + assert result == expected diff --git a/python-dateparser.changes b/python-dateparser.changes index 62b4f38..4596783 100644 --- a/python-dateparser.changes +++ b/python-dateparser.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jan 2 12:55:05 UTC 2026 - Markéta Machová + +- Add happy-new-year.patch, sent upstream (boo#1255836) + ------------------------------------------------------------------- Mon Sep 15 11:38:15 UTC 2025 - Markéta Machová diff --git a/python-dateparser.spec b/python-dateparser.spec index f7054e1..6a7f78d 100644 --- a/python-dateparser.spec +++ b/python-dateparser.spec @@ -1,7 +1,7 @@ # # spec file for package python-dateparser # -# Copyright (c) 2025 SUSE LLC and contributors +# Copyright (c) 2026 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -32,6 +32,8 @@ Source: https://files.pythonhosted.org/packages/source/d/dateparser/date # PATCH-FIX-UPSTREAM mark-network-tests.patch gh#scrapinghub/dateparser#1059 mcepl@suse.com # mark test requiring network access Patch1: mark-network-tests.patch +# PATCH-FIX-UPSTREAM https://github.com/scrapinghub/dateparser/pull/1294 use current year in test_search_dates_with_prepositions +Patch2: happy-new-year.patch BuildRequires: %{python_module pip} BuildRequires: %{python_module wheel} BuildRequires: fdupes