diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-05 15:38:58 +0000 |
|---|---|---|
| committer | Rutherther <rutherther@ditigal.xyz> | 2026-01-25 21:18:13 +0100 |
| commit | c3aefebcefc2d3cb26ddf84851db53f04d9e48be (patch) | |
| tree | faa3df6849acce02df8515a71d46a7acafacdaf8 /gnu/packages | |
| parent | 2a9429b71586375290e62815f7ad4a5f873ece9f (diff) | |
gnu: Add python-pydantic-1.
* gnu/packages/python-xyz.scm (python-pydantic-1): New variable.
Change-Id: Ifc4b64d7c1b34a083c35a0cad6be8da4d7e6c20b
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 0b545c74cc1..c5f262c9a1a 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -10108,6 +10108,33 @@ which can produce feeds in RSS 2.0, RSS 0.91, and Atom formats.") errors when data is invalid.") (license license:expat))) +(define-public python-pydantic-1 + (package + (inherit python-pydantic) + (name "python-pydantic") + (version "1.10.19") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/samuelcolvin/pydantic") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0swcpfq1y0h5dcj82idls8k5la4xh4c0vz47y7jci2qass8gjffc")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + ;; One test fails with not equal assertion. + #~(list "--deselect=tests/test_validators.py::test_assert_raises_validation_error"))) + (native-inputs + (list python-pytest + python-pytest-mock + python-setuptools)) + (propagated-inputs + (list python-typing-extensions)))) + (define-public python-pydantic-2 (package (inherit python-pydantic) |
