From 91b29aa37394b660117e1d79927621db1344b7fe Mon Sep 17 00:00:00 2001 From: Xinglu Chen Date: Wed, 23 Jun 2021 10:52:38 +0200 Subject: gnu: ocaml-dose3: Fix tests. * gnu/packages/ocaml.scm (ocaml-dose3)[arguments]<#:phases>: Add phase to patch tests script. Signed-off-by: Julien Lepiller --- gnu/packages/ocaml.scm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'gnu/packages/ocaml.scm') diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index dd30f4cc97..1262c0e303 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -647,7 +647,14 @@ (define-public ocaml-dose3 #:make-flags (list (string-append "LIBDIR=" (assoc-ref %outputs "out") - "/lib/ocaml/site-lib")))) + "/lib/ocaml/site-lib")) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-test-script + (lambda _ + (substitute* "applications/dose-tests.py" + (("warning\\(") + "from warnings import warn\nwarn("))))))) (propagated-inputs `(("ocaml-graph" ,ocaml-graph) ("ocaml-cudf" ,ocaml-cudf) -- cgit v1.2.3