rekado pushed a commit to branch master
in repository guix.

commit b396f3078b208a28b44843421145bccfe84475de
Author: Ricardo Wurmus <[email protected]>
AuthorDate: Mon Jan 13 11:13:56 2025 +0100

    gnu: Add python-python3-saml.
    
    * gnu/packages/python-web.scm (python-python3-saml): New variable.
    
    Change-Id: I2609fcea5f55372670629fd1ce5641319489feea
---
 gnu/packages/python-web.scm | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 379aa788f2..a9a3ad08df 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -1277,6 +1277,47 @@ Model} (SAM) templates into AWS CloudFormation 
templates.")
 emit information from within their applications to the AWS X-Ray service.")
     (license license:asl2.0)))
 
+(define-public python-python3-saml
+  (package
+    (name "python-python3-saml")
+    (version "1.16.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/SAML-Toolkits/python3-saml";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1isisymhk8zblj5942jfl0zq392q5fpjikx52nywvzb0m2dcc81b"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      ;; 214 tests pass, 50 fail; many fail because of required Internet
+      ;; access or because of assumptions about the location of test files.
+      #:tests? #false
+      #:phases
+      #~(modify-phases %standard-phases
+          ;; FIXME: This should be fixed in python-xmlsec
+          (add-before 'check 'pre-check
+            (lambda* (#:key inputs #:allow-other-keys)
+              (setenv "LD_LIBRARY_PATH"
+                      (dirname (search-input-file inputs 
"lib/libxmlsec1-openssl.so.1.2.37"))))))))
+    (propagated-inputs (list python-isodate python-lxml python-xmlsec))
+    (native-inputs (list python-coverage
+                         python-flake8
+                         python-freezegun
+                         python-poetry-core
+                         python-pytest
+                         python-setuptools
+                         python-wheel))
+    (home-page "https://github.com/SAML-Toolkits/python3-saml";)
+    (synopsis "Saml Python toolkit")
+    (description
+     "The SAML Python Toolkit lets you add SAML support to your Python
+software.")
+    (license license:expat)))
+
 (define-public python-ovh
   (package
     (name "python-ovh")

Reply via email to