guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 4425422cb0ecc7f813f696de04045e354e59338e
Author: Vinicius Monego <[email protected]>
AuthorDate: Sat Aug 2 12:29:06 2025 -0300

    gnu: Add python-safety-schemas.
    
    * gnu/packages/python-xyz.scm (python-safety-schemas): New variable.
    
    Change-Id: Iec3bb513e2c96bda5b7019404fb2315f09c5023d
---
 gnu/packages/python-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index ccfcca10c6..c104d9e31b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -949,6 +949,42 @@ your terminal.")
 edit distance algorithm for Python in Cython for high performance.")
     (license license:bsd-3)))
 
+(define-public python-safety-schemas
+  (package
+    (name "python-safety-schemas")
+    (version "0.0.14")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "safety_schemas" version))
+       (sha256
+        (base32 "0smgszbd3nb7jh61cgpycqhcvfwwdyaai5amw8mmf6g9b5x3z5a9"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:test-flags
+      #~(list "-k" (string-join
+                    ;; These tests are failing for unknown reasons.
+                    ;; (AssertionError).
+                    (list "not test_model[ConfigModel-ConfigModel]"
+                          "test_model[MetadataModel-MetadataModel]"
+                          "test_model[PolicyFileModel-PolicyFileModel]"
+                          "test_model[ProjectModel-ProjectModel]"
+                          "test_model[ReportModel-ReportModel]")
+                    " and not "))))
+    (propagated-inputs (list python-dparse
+                             python-packaging
+                             python-pydantic-2
+                             python-ruamel.yaml
+                             python-typing-extensions))
+    (native-inputs (list python-deepdiff python-hatchling python-pytest))
+    ;; Source code is not yet published outside of PyPI:
+    ;; https://github.com/pyupio/safety/issues/494
+    (home-page "https://pypi.org/project/safety-schemas/";)
+    (synopsis "Schemas for Safety tools")
+    (description "This package contains models and schemas used by Safety.")
+    (license license:expat)))
+
 (define-public python-senf
   (package
     (name "python-senf")

Reply via email to