From 908b680a5f213620c19c157223b45ccf3e534ade Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 12 Jul 2022 12:35:56 +0300 Subject: [PATCH] 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. --- gnu/packages/python-xyz.scm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index c28b0675ad..f146746058 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -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?