Subject: Help me updating python-pedantic for multiqc

From: [email-masked]
Date: Thu, 06 Feb 2025 23:35:14 +0100

HI,

I'm trying out guix and thought : "why not update a package ?". Trying out multiqc requires python-pedantic... but that was not that bad (and I'm pleasanly surprised).
There are 2 issues :

1. only one test is failing for python-pedantic (see log below). What to do there ?
2. hundred of packages depend of python-pedanticl. Not sure how not to break all of these.

The current state of affair is the singe patch attached to this mail. Maybe that's too hard for a first contribution !

Thanks,

Alexis

8<---------------------------

=========================== short test summary info ============================
FAILED tests/test_networks.py::test_any_url_invalid[https://example.org more-url_parsing-Input should be a valid URL, invalid domain character] - AssertionError: assert {'type': 'url_parsing', 'msg': 'Input should be a valid URL, invalid international domain name'} == {'type': 'url_parsing', 'msg': 'Input should be a valid URL, invalid domain character'}

  Common items:
  {'type': 'url_parsing'}
  Differing items:
  {'msg': 'Input should be a valid URL, invalid international domain name'} != {'msg': 'Input should be a valid URL, invalid domain character'}

  Full diff:
    {
  -     'msg': 'Input should be a valid URL, invalid domain character',
  ?                                                         ^^ ^^^^ -
  +     'msg': 'Input should be a valid URL, invalid international domain name',
  ?                                                  ++++++++++++++       ^ ^
        'type': 'url_parsing',
    }
========== 1 failed, 5029 passed, 1027 skipped, 15 xfailed in 17.97s ===========

From 0e2428f3cc36e2bf24463855aa011bf03e5a9772 Mon Sep 17 00:00:00 2001
Message-ID: <[email-masked]>
From: Alexis Praga <[email-masked]>
Date: Thu, 6 Feb 2025 23:31:32 +0100
Subject: [PATCH] Updating python-pedantic to 2.10.6

Change-Id: I97e5780ae59728dec904ff8efb5cf3dd12ee2b6f
---
 gnu/packages/python-xyz.scm | 24 +++++++++++++++---------
 1 file changed, 15 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index f2139413a0..9937f6124c 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8587,26 +8587,32 @@ (define-public python-jsonrpc-server
 (define-public python-pydantic
   (package
     (name "python-pydantic")
-    (version "1.10.19")
+    (version "2.10.6")
     (source
      (origin
        (method git-fetch)
        (uri (git-reference
-             (url "https://github.com/samuelcolvin/pydantic")
+             (url "https://github.com/pydantic/pydantic")
              (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "0swcpfq1y0h5dcj82idls8k5la4xh4c0vz47y7jci2qass8gjffc"))))
+        (base32 "02nsrk41iw39y3ybinng0w49gcp2i672k2caqzgw59b21qfyyidy"))))
     (build-system pyproject-build-system)
-    (arguments
-     (list
-      #:test-flags
-      ;; One test fails with  not equal assertion.
-      #~(list "--deselect=tests/test_validators.py::test_assert_raises_validation_error")))
     (native-inputs
-     (list python-pytest
+     (list python-annotated-types
+           python-dirty-equals
+           python-faker
+           python-hatchling
+           python-hatch-fancy-pypi-readme
+           python-jsonschema
+           python-pydantic-core
+           python-pytest
+           python-pytest-benchmark
+           python-pytest-examples
            python-pytest-mock
+           python-rich
            python-setuptools
+           python-tzdata
            python-wheel))
     (propagated-inputs
      (list python-typing-extensions))

base-commit: 1b1507afa939d6063e0ecd211d12af411669c5fe
-- 
2.48.1