~ruther/guix-local

09fdd226389290d1e6f02b49c91fe68f3d85bee2 — Nicolas Graves 4 months ago 32c6889
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 <sharlatanus@gmail.com>
1 files changed, 31 insertions(+), 10 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +31 -10
@@ 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