mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-15 03:20:43 +02:00
gnu: python-pydantic: Update to 1.9.1.
* gnu/packages/python-xyz.scm (python-pydantic): Update to 1.9.1. [arguments]: Remove phase 'disable-test.
This commit is contained in:
parent
eb3aee6cd0
commit
8ef4d33a17
1 changed files with 2 additions and 23 deletions
|
@ -5038,7 +5038,7 @@ which can produce feeds in RSS 2.0, RSS 0.91, and Atom formats.")
|
||||||
(define-public python-pydantic
|
(define-public python-pydantic
|
||||||
(package
|
(package
|
||||||
(name "python-pydantic")
|
(name "python-pydantic")
|
||||||
(version "1.9.0")
|
(version "1.9.1")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
|
@ -5047,32 +5047,11 @@ which can produce feeds in RSS 2.0, RSS 0.91, and Atom formats.")
|
||||||
(commit (string-append "v" version))))
|
(commit (string-append "v" version))))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "14wj3k9007fpbxk7593w6gdqrr68yzrsw4a41sj5ji4cv3r8z18b"))))
|
(base32 "1406kgppqa7524mxllsipj7gb8fn7pwf51l11lqik59xjhsfv94f"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases
|
'(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-before 'check 'disable-test
|
|
||||||
(lambda _
|
|
||||||
;; Reported upstream:
|
|
||||||
;; <https://github.com/samuelcolvin/pydantic/issues/1580>.
|
|
||||||
;; Disable the faulty test as the fix is unclear.
|
|
||||||
(substitute* "tests/test_validators.py"
|
|
||||||
(("test_assert_raises_validation_error")
|
|
||||||
"_test_assert_raises_validation_error"))
|
|
||||||
|
|
||||||
;; These fail because of <https://bugs.python.org/issue40398>.
|
|
||||||
;; Remove after Python has been upgraded to >= 3.9.
|
|
||||||
(substitute* "tests/test_generics.py"
|
|
||||||
(("assert replace_types\\(Callable, \\{T: int\\}\\) == Callable")
|
|
||||||
""))
|
|
||||||
(substitute* "tests/test_schema.py"
|
|
||||||
(("test_unenforced_constraints_schema")
|
|
||||||
"_test_unenforced_constraints_schema"))
|
|
||||||
|
|
||||||
;; Disable tests for the Hypothesis plugin because it is tricky
|
|
||||||
;; to configure in the build container.
|
|
||||||
(delete-file "tests/test_hypothesis_plugin.py")))
|
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _ (invoke "pytest" "-vv"))))))
|
(lambda _ (invoke "pytest" "-vv"))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue