gnu: python-statmake: Adjust tests and version checks.

* gnu/packages/fontutils.scm (python-statmake)[arguments]: Disable broken
test; relax check for cattrs.

Change-Id: Ibd479743160d3591088d17635e26484e7de5250f
This commit is contained in:
Ricardo Wurmus 2024-05-03 11:21:37 +02:00
parent cb9ec4c5c5
commit ffffc0227a
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -1751,6 +1751,9 @@ (define-public python-statmake
(build-system pyproject-build-system)
(arguments
(list
#:test-flags
;; The code no longer raises <class 'ValueError'>
'(list "-k" "not test_load_stylespace_broken_range")
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'adjust-for-older-attrs
@ -1760,7 +1763,9 @@ (define-public python-statmake
(lambda _
(substitute* "pyproject.toml"
(("attrs = \">=21.3\"")
"attrs = \">=21.2\""))
"attrs = \">=21.2\"")
(("cattrs = \">=22.2\"")
"cattrs = \">=22.1\""))
(substitute* (find-files "." "\\.py$")
(("from attrs\\b")
"from attr")