me
/
guix
Archived
1
0
Fork 0

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
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
1 changed files with 9 additions and 0 deletions

View File

@ -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?