mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-31 14:56:54 +01:00
gnu: python-cattrs: Update to 24.1.2.
* gnu/packages/python-xyz.scm (python-cattrs): Update to 24.1.2. [arguments]: Disable failing tests; add 'compatibility phase. [native-inputs]: Add python-msgspec and python-poetry-core. Change-Id: If198b25a24799b22025c60082ae31fc4e8509a9b
This commit is contained in:
parent
38124cfc6b
commit
95d2f1aab8
1 changed files with 16 additions and 5 deletions
|
@ -22437,7 +22437,7 @@ (define-public python-msgpack-python
|
|||
(define-public python-cattrs
|
||||
(package
|
||||
(name "python-cattrs")
|
||||
(version "23.2.3")
|
||||
(version "24.1.2")
|
||||
(source (origin
|
||||
(method git-fetch) ;for tests
|
||||
(uri (git-reference
|
||||
|
@ -22446,12 +22446,12 @@ (define-public python-cattrs
|
|||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"0lrrz4n6ygfyrzn40mxm82kkvgqclfi760zydy4lin3bcv73jqyd"))))
|
||||
"0l806xs0insnvnd1c2l6f6bcaa7wgfrpvbbcyhhsvf2xy9mzq8rd"))))
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:test-flags
|
||||
#~(list "--numprocesses" (number->string (parallel-job-count))
|
||||
'(list "--numprocesses" (number->string (parallel-job-count))
|
||||
;; Skip all benchmark tests.
|
||||
"--ignore=bench/test_attrs_collections.py"
|
||||
"--ignore=bench/test_attrs_nested.py"
|
||||
|
@ -22461,12 +22461,15 @@ (define-public python-cattrs
|
|||
(string-join
|
||||
;; XXX: Tests fail with error: AssertionError: assert ...,
|
||||
;; check why.
|
||||
(list "not test_310_optional_field_roundtrip"
|
||||
(list "not test_msgspec_json_converter"
|
||||
"test_structure_simple_from_dict_default"
|
||||
"test_310_optional_field_roundtrip"
|
||||
"test_310_union_field_roundtrip"
|
||||
"test_nested_roundtrip"
|
||||
"test_nested_roundtrip_tuple"
|
||||
"test_omit_default_roundtrip"
|
||||
"test_optional_field_roundtrip"
|
||||
;; See https://github.com/python-attrs/cattrs/issues/575
|
||||
"test_simple_roundtrip"
|
||||
"test_simple_roundtrip_defaults"
|
||||
"test_simple_roundtrip_defaults_tuple"
|
||||
|
@ -22485,13 +22488,21 @@ (define-public python-cattrs
|
|||
(("dynamic = \\[\"version\"\\]")
|
||||
(string-append "version = \"" #$version "\""))
|
||||
;; Just run pytest with no frills
|
||||
(("addopts = \"-l.*") "")))))))
|
||||
(("addopts = \"-l.*") ""))))
|
||||
;; XXX Our python-hypothesis package is too old.
|
||||
(add-after 'unpack 'compatibility
|
||||
(lambda _
|
||||
(substitute* "tests/typed.py"
|
||||
(("characters\\(codec=codec\\)")
|
||||
"characters()")))))))
|
||||
(native-inputs
|
||||
(list python-hatchling
|
||||
python-hatch-vcs
|
||||
python-hypothesis
|
||||
python-immutables
|
||||
python-msgpack
|
||||
python-msgspec
|
||||
python-poetry-core
|
||||
python-pymongo ;for the bson module
|
||||
python-pytest
|
||||
python-pytest-benchmark
|
||||
|
|
Loading…
Reference in a new issue