guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 09fdd226389290d1e6f02b49c91fe68f3d85bee2
Author: Nicolas Graves <[email protected]>
AuthorDate: Tue Oct 28 15:48:10 2025 +0100

    gnu: python-pysaml2: Update to 7.5.4.
    
    * gnu/packages/python-xyz.scm (python-pysaml2): Update to 7.5.4.
    [source]: Switch to git-fetch.
    [build-system]: Switch to pyproject-build-system.
    [arguments]<#:test-flags>: Disable failing tests.
    <#:phases>: Add phase 'relax-requirements.
    [native-inputs]: Add python-poetry-core, python-pytest.
    [propagated-inputs]: Remove python-importlib-resources, python-pytz,
    python-six.  Add python-pymongo, python-responses, python-xmlsec.
    
    Change-Id: Ic558dee40c24429be43d3afbd4079dbc08ba993c
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/python-xyz.scm | 41 +++++++++++++++++++++++++++++++----------
 1 file changed, 31 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index df99b92901..022ca33d3e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -30676,25 +30676,46 @@ happened, and what caused it.")
 (define-public python-pysaml2
   (package
     (name "python-pysaml2")
-    (version "6.5.1")
+    (version "7.5.4")
     (source
      (origin
-       (method url-fetch)
-       (uri (pypi-uri "pysaml2" version))
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/IdentityPython/pysaml2";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
        (sha256
-        (base32
-         "1xk2x0slz1f8cqv7vn77qx99xfd1mshhswiwrljk9m72w2m9iivd"))))
-    (build-system python-build-system)
+        (base32 "1vxi6kmckaj0djn79xw8f0gdd569i2y6sywsywyvyrwdcf6k8fqc"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:test-flags
+      #~(list "-k"
+              (string-join
+               ;; XXX: encryption failures
+               (list "not test_encrypted_response_6"
+                     "test_validate_cert_chains"
+                     "test_validate_with_root_cert"
+                     ;; XXX: xml parsing error
+                     "test_namespace_processing") " and not "))
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'relax-requirements
+            (lambda _
+              (substitute* "pyproject.toml"
+                (("\"(pyopenssl|xmlschema).*\"" _ dep)
+                 (format #f "~s" dep))))))))
+    (native-inputs (list python-poetry-core python-pytest))
     (propagated-inputs
      (list python-cryptography
            python-dateutil
            python-defusedxml
-           python-importlib-resources
+           python-pymongo
            python-pyopenssl
-           python-pytz
+           python-responses
            python-requests
-           python-six
-           python-xmlschema))
+           python-xmlschema
+           python-xmlsec))
     (home-page "https://idpy.org";)
     (synopsis "Python implementation of SAML Version 2 Standard")
     (description

Reply via email to