summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/python-xyz.scm36
1 files changed, 36 insertions, 0 deletions
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")