gnu: python-wtforms: Adjust for SQLAlchemy >= 1.4.

* gnu/packages/python-web.scm (python-wtforms)[arguments]: Add phase to delete test.
This commit is contained in:
Marius Bakke 2021-09-15 19:28:43 +02:00
parent d0e23782df
commit 16110ba476
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -4163,6 +4163,12 @@ (define-public python-wtforms
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'delete-bundled-test
(lambda _
;; Delete test copied from a third party package that fails
;; with newer SQLAlchemy. This can be removed for 3.0.
;; See <https://github.com/wtforms/wtforms/issues/696>.
(delete-file "tests/ext_sqlalchemy.py")))
(replace 'check
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
(when tests?