gnu: Add python-safety-schemas.

* gnu/packages/python-xyz.scm (python-safety-schemas): New variable.

Change-Id: Iec3bb513e2c96bda5b7019404fb2315f09c5023d
This commit is contained in:
Vinicius Monego 2025-08-02 12:29:06 -03:00
parent 8082f9c2ac
commit 4425422cb0
No known key found for this signature in database
GPG key ID: 637B0B138065B68A

View file

@ -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")