gnu: ocaml-dose3: Fix tests.

* gnu/packages/ocaml.scm (ocaml-dose3)[arguments]<#:phases>: Add phase to
patch tests script.

Signed-off-by: Julien Lepiller <julien@lepiller.eu>
This commit is contained in:
Xinglu Chen 2021-06-23 10:52:38 +02:00 committed by Julien Lepiller
parent 976a49bacc
commit 91b29aa373
No known key found for this signature in database
GPG Key ID: 53D457B2D636EE82

View File

@ -647,7 +647,14 @@ underlying solvers like Cplex, Gurobi, Lpsolver, Glpk, CbC, SCIP or WBO.")
#:make-flags #:make-flags
(list (string-append "LIBDIR=" (list (string-append "LIBDIR="
(assoc-ref %outputs "out") (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 (propagated-inputs
`(("ocaml-graph" ,ocaml-graph) `(("ocaml-graph" ,ocaml-graph)
("ocaml-cudf" ,ocaml-cudf) ("ocaml-cudf" ,ocaml-cudf)