GNU bug report logs - #63502
[PATCH] gnu: python-babel: Update to 2.12.1.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Philippe SWARTVAGHER <phil.swart@HIDDEN>; Keywords: patch; Done: Nicolas Goaziou <mail@HIDDEN>; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at 63502-done <at> debbugs.gnu.org:


Received: (at 63502-done) by debbugs.gnu.org; 23 Feb 2025 10:06:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 23 05:06:26 2025
Received: from localhost ([127.0.0.1]:59425 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tm8sT-0001vl-UM
	for submit <at> debbugs.gnu.org; Sun, 23 Feb 2025 05:06:26 -0500
Received: from msg-3.mailo.com ([213.182.54.8]:37220 helo=mailo.com)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <mail@HIDDEN>)
 id 1tm8rx-0001tt-AV
 for 63502-done <at> debbugs.gnu.org; Sun, 23 Feb 2025 05:05:54 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=nicolasgoaziou.fr;
 s=mailo; t=1740305146;
 bh=rYjnuWlnRCf0Ms6qQJwcBR1MxaEcPaAoJVzInWk+5II=;
 h=X-EA-Auth:From:To:Subject:In-Reply-To:Date:Message-ID:
 MIME-Version:Content-Type;
 b=FVw+JXJANC7i3JN5N9DOvCDy4jyDnOseI2WjsmqDKPh9MzBDjq/QpbA7mG83udcW1
 cKRspkF77IOAEnzdOw+ATbAmovmkv9G63bgJ7D5fJYMoVPiLt08MHViV/DVvFoBKyF
 LA6SQR63j9FHDnhkBMa8nqMd6FGFnq5CvGNVFcj8=
Received: by b221-7.in.mailobj.net [192.168.90.27] with ESMTP
 via ip-20.mailobj.net [213.182.54.20]
 Sun, 23 Feb 2025 11:05:46 +0100 (CET)
X-EA-Auth: 9Hu9BkFG3iAq/WOAqeuQ+T7elMx0iN4dSn1dpaff06+20htGCYOOLBVBaIV23miGfNdEKtEVb2tbIqKi5NQTIYseqeIenRV0AcOYsE+Yqcs=
From: Nicolas Goaziou <mail@HIDDEN>
To: 63502-done <at> debbugs.gnu.org
Subject: Re: [PATCH] gnu: python-babel: Update to 2.12.1.
In-Reply-To: <3227a76d744b9a670555dad4ccd4e6c0743f6de1.1684077403.git.phil.swart@HIDDEN>
Date: Sun, 23 Feb 2025 11:05:29 +0100
Message-ID: <878qpxugba.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 63502-done
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello,

> * gnu/packages/patches/python-babel-fix-tests.patch: New file.
> * gnu/local.mk (dist_patch_DATA): Add it.
> * gnu/packages/python-xyz.scm (python-babel): Use it, update to 2.12.1
>   and apply `guix style'.

Python Babel is currently at 2.16.0. Closing.

Regards,
-- 
Nicolas Goaziou






Notification sent to Philippe SWARTVAGHER <phil.swart@HIDDEN>:
bug acknowledged by developer. Full text available.
Reply sent to Nicolas Goaziou <mail@HIDDEN>:
You have taken responsibility. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 14 May 2023 15:18:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 14 11:18:39 2023
Received: from localhost ([127.0.0.1]:41334 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pyDUc-0006LY-Uy
	for submit <at> debbugs.gnu.org; Sun, 14 May 2023 11:18:39 -0400
Received: from lists.gnu.org ([209.51.188.17]:36618)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <phil.swart@HIDDEN>) id 1pyDUb-0006LQ-DY
 for submit <at> debbugs.gnu.org; Sun, 14 May 2023 11:18:38 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <phil.swart@HIDDEN>) id 1pyDUb-0001DT-6U
 for guix-patches@HIDDEN; Sun, 14 May 2023 11:18:37 -0400
Received: from mout.gmx.net ([212.227.17.20])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <phil.swart@HIDDEN>) id 1pyDUZ-0003eR-2d
 for guix-patches@HIDDEN; Sun, 14 May 2023 11:18:36 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.fr; s=s31663417;
 t=1684077512; i=phil.swart@HIDDEN;
 bh=etzi/CsT4sgN63D5aTcRRN+B/0f4KyHwC64PbrzVKUo=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:Date;
 b=dfrVV+5eYnESRZscZWnOxB9gNKWZYfu7lU0EwYXS4rtJLVP9hqJ68voElFUn9Nbq+
 9C7pPeWek7WOH+ZCG7ydEZEI2vJd4yyS1WopqdppvXE/yHbg74J9EfXFUCcn6xiaXt
 12iDABgy0LrTjy/bysoVZ6zsDf09Gql1feRPrk3Z3Pgsk1Ka8FnE/lBbLbpHGoSEIo
 jhP5xKJAQJvKSDPlCLElOlJq7RFShj+Sllb4veMcLPrE0v/dWDz0oM8JcWBZksqd4g
 PFqOMzHI+Fw1lKYxKnYgKnuPokTAJeXjUUHfmpB+p12zOuPQ7jp+hLQrcRzWEn4Dla
 KAdd4nv63jqkw==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from localhost.localdomain ([62.99.135.46]) by mail.gmx.net
 (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id
 1MK3Rm-1pkOMr2LXC-00LWpV; Sun, 14 May 2023 17:18:32 +0200
From: Philippe SWARTVAGHER <phil.swart@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] gnu: python-babel: Update to 2.12.1.
Date: Sun, 14 May 2023 17:17:36 +0200
Message-Id: <3227a76d744b9a670555dad4ccd4e6c0743f6de1.1684077403.git.phil.swart@HIDDEN>
X-Mailer: git-send-email 2.30.2
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:gorV42lu0Bvf7eYBQaLPejwr45dkZSdqFKqsx2j0ZtmscANA1a1
 I4gdAjE/ORf7t9+aTkj8vC01B1vR0FpBSdzbY2LGzvPx3/VNyT5UFPDpJct8xFDLZ7OE0l2
 wYwUkEu/emQYs28hXPoC72WGHexyW8ShW7s82OJYsZqRgODAP1PPScU/LC84Mh69Q4ZyXGo
 Ff06Iyy4SwXG2YiULdetw==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:57CcUIhHAaY=;aRykQrWDvIPPjP37W8CpTKcRRPR
 NNn6wl6t/Lkmhhg9vVve6DJQtaKq851+BXvVHY9KXexaSRom6H0XuS7iUcOpZsl0IZj5dNd52
 wXfPBp2NHr1BCIMhA7pVOrmpgqtY/fe00/c5RtrO+oEGG27o616z7Xot4u54y2K6gHaR45V3H
 eH5/QeADKe0Pnl1y7MtrtLduQA8hSTk8diLvckCUzduZ5rrt4EESeBbWFIywAK0B6t7oA9UWn
 rOfbEGdXUwcxMx+UjkWYBHizL8SEvnx4w3XKPMgcX1AKvznLMQgMze0Ci7X4cjIkjdUOst5bv
 ljO9tQEulFyW4kpTHZkwTFkc5AKBz7QTU831kfCAJrBToaGxZioMvagfUFtoDQ97jVyOGA7/7
 +Si2sDxVb8Ok9IaKyeTs+3meSReiXM0FoujiDOxHEsZLRK+ehqIJBklP/8CucHxoQzlDA0ltx
 9ncH3AM62wDE5w8GHEN7CUHZz0VMBHD3JzHlzxzJPkf18adeHnG4JOl4WNwD6CWgMeiYLS+Nl
 OsBQN47/rTgXr+UCv/nJv2GbD9qGWXrlG9FvPN7ktPhXtxOh6fyOH/Kxoq2JTXUmkc6XjeopD
 PpWSrDgMFKaMTUYWi6wF6b2DPnp+J2iNnidBihsLoJil+HtaHkDbHh4CRkS972nM/Yc4HJ1xc
 b4aOsK1wpmrizA93x9ZKbMlbMOD7sC0wGAqhuUbO+9gv1K5Ivw4petHb134EMJ0x/9ODxjUfS
 9GOUw11l9ZOhyrOgjvcoRsLvtkjRlsvn2QjRQDOGwQTp15jf4t+JN5kayzyK/KAjARCc8QSf4
 oVRI9GOkeDOn+Z8TpUQfpE/ttjGG/0/lVZVX9Q6Z1cotIqVgUDXrfiJWb5P+5/0uofk3clBI2
 dB3EVsu9akHkr6e7WVA6NLr7elLWbpQLF2tjO+NwFsMIzSHpnUEBMQCf2kpQykstD5I4NJnsE
 lXW/hgp6I84n/Tuljs1KX6KDob4=
Received-SPF: pass client-ip=212.227.17.20; envelope-from=phil.swart@HIDDEN;
 helo=mout.gmx.net
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
Cc: Philippe SWARTVAGHER <phil.swart@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

* gnu/packages/patches/python-babel-fix-tests.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/python-xyz.scm (python-babel): Use it, update to 2.12.1
  and apply `guix style'.
=2D--
 gnu/local.mk                                  |  1 +
 .../patches/python-babel-fix-tests.patch      | 43 +++++++++++++++++++
 gnu/packages/python-xyz.scm                   | 26 ++++++-----
 3 files changed, 56 insertions(+), 14 deletions(-)
 create mode 100644 gnu/packages/patches/python-babel-fix-tests.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index 012ce84d2d..4fa9033427 100644
=2D-- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1678,6 +1678,7 @@ dist_patch_DATA =3D						\
   %D%/packages/patches/prusa-slicer-fix-tests.patch		\
   %D%/packages/patches/prusa-slicer-with-cereal-1.3.1.patch	\
   %D%/packages/patches/pthreadpool-system-libraries.patch	\
+  %D%/packages/patches/python-babel-fix-tests.patch		\
   %D%/packages/patches/python-chai-drop-python2.patch		\
   %D%/packages/patches/python-feedparser-missing-import.patch	\
   %D%/packages/patches/python-louvain-fix-test.patch		\
diff --git a/gnu/packages/patches/python-babel-fix-tests.patch b/gnu/packa=
ges/patches/python-babel-fix-tests.patch
new file mode 100644
index 0000000000..4779f907a9
=2D-- /dev/null
+++ b/gnu/packages/patches/python-babel-fix-tests.patch
@@ -0,0 +1,43 @@
+From 641f58c9951d9f5746cd63743dd337f1340d7bff Mon Sep 17 00:00:00 2001
+From: =3D?UTF-8?q?Micha=3DC5=3D82=3D20G=3DC3=3DB3rny?=3D <mgorny@HIDDEN=
rg>
+Date: Fri, 7 Apr 2023 14:51:10 +0000
+Subject: [PATCH] Freeze format_time() tests to a specific date to fix tes=
t
+ failures
+
+Freeze the date when performing the tests for format_time() with
+a timezone specified.  Since the time object does not specify a date,
+the formatter uses the format string specific to the current date.
+As a result, if the current DST state is different than when the test
+was last updated, it failed.
+
+This fix covers only regular tests.  I have no idea how to do the same
+for doctests.
+
+Issue #988
+---
+ tests/test_dates.py | 11 ++++++-----
+ 1 file changed, 6 insertions(+), 5 deletions(-)
+
+diff --git a/tests/test_dates.py b/tests/test_dates.py
+index b94c710f..3f1fc3fc 100644
+--- a/tests/test_dates.py
++++ b/tests/test_dates.py
+@@ -601,12 +601,13 @@ def test_format_time(timezone_getter):
+     custom =3D dates.format_time(t, "hh 'o''clock' a, zzzz", tzinfo=3Dea=
stern, locale=3D'en')
+     assert custom =3D=3D "09 o'clock AM, Eastern Daylight Time"
+
+-    t =3D time(15, 30)
+-    paris =3D dates.format_time(t, format=3D'full', tzinfo=3Dparis, loca=
le=3D'fr_FR')
+-    assert paris =3D=3D '15:30:00 heure normale d=E2=80=99Europe central=
e'
++    with freezegun.freeze_time("2023-01-01"):
++        t =3D time(15, 30)
++        paris =3D dates.format_time(t, format=3D'full', tzinfo=3Dparis, =
locale=3D'fr_FR')
++        assert paris =3D=3D '15:30:00 heure normale d=E2=80=99Europe cen=
trale'
+
+-    us_east =3D dates.format_time(t, format=3D'full', tzinfo=3Deastern, =
locale=3D'en_US')
+-    assert us_east =3D=3D '3:30:00\u202fPM Eastern Standard Time'
++        us_east =3D dates.format_time(t, format=3D'full', tzinfo=3Deaste=
rn, locale=3D'en_US')
++        assert us_east =3D=3D '3:30:00\u202fPM Eastern Standard Time'
+
+
+ def test_format_skeleton(timezone_getter):
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b6527221c4..a8a3c91352 100644
=2D-- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -1797,27 +1797,25 @@ (define-public python-clyent
 (define-public python-babel
   (package
     (name "python-babel")
-    (version "2.10.3")
-    (source
-     (origin
-       (method url-fetch)
-       (uri (pypi-uri "Babel" version))
-       (sha256
-        (base32
-         "0l9cvfmsz0hlvcinxaf6xf2f02ldgw3xq9i1fc7lk5zf24vma53n"))))
+    (version "2.12.1")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "Babel" version))
+              (sha256
+               (base32
+                "0m9ljs0qabb2gwadcxkrvjmb649pkqfa49g7191487fhkjcrjbfc"))
+              ;; fix a failing test, see https://github.com/python-babel/=
babel/pull/998
+              (patches (search-patches "python-babel-fix-tests.patch"))))
     (build-system python-build-system)
-    (native-inputs
-     (list python-freezegun python-pytest tzdata-for-tests))
-    (propagated-inputs
-     (list python-pytz))
+    (native-inputs (list python-freezegun python-pytest tzdata-for-tests)=
)
+    (propagated-inputs (list python-pytz))
     (arguments
      `(#:phases (modify-phases %standard-phases
                   (replace 'check
                     (lambda _
                       (invoke "pytest" "-vv"))))))
     (home-page "https://babel.pocoo.org/")
-    (synopsis
-     "Tools for internationalizing Python applications")
+    (synopsis "Tools for internationalizing Python applications")
     (description
      "Babel is composed of two major parts:
 - tools to build and work with gettext message catalogs

base-commit: eb7312401ea89e634f8d686db71bacda58b2755f
=2D-
2.30.2





Acknowledgement sent to Philippe SWARTVAGHER <phil.swart@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#63502; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 23 Feb 2025 10:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.