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.master
parent
9173cb522d
commit
908b680a5f
|
@ -19000,6 +19000,15 @@ from the header, as well as section details and data available.")
|
|||
(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?
|
||||
|
|
Reference in New Issue