gnu: python-attrs: Remove test deadlines on riscv64-linux.

* gnu/packages/python-xyz.scm (python-attrs)[arguments]: When building
for riscv64-linux remove the hypothesis test deadlines.
This commit is contained in:
Efraim Flashner 2022-07-12 12:35:56 +03:00
parent 9173cb522d
commit 908b680a5f
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -19000,6 +19000,15 @@ (define-public python-attrs
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
,@(if (target-riscv64?)
;; TODO: Remove the conditional on staging.
`((add-after 'unpack 'remove-test-hypothesis-deadlines
(lambda _
(substitute* "tests/test_make.py"
(("assume, given") "assume, given, settings")
(("( +)@given" all spaces)
(string-append spaces "@settings(deadline=None)\n" all))))))
'())
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?