gnu: clojure-algo-generic: Fix test failing under AOT in Clojure 1.11.1.

* gnu/packages/clojure.scm (clojure-algo-generic)[arguments]: Add
'fix-import' phase.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
r0man 2022-07-16 20:24:22 +02:00 committed by Ludovic Courtès
parent af7dd52136
commit 884c87a100
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -275,7 +275,15 @@ (define-public clojure-algo-generic
(arguments
'(#:source-dirs '("src/main/clojure/")
#:test-dirs '("src/test/clojure/")
#:doc-dirs '()))
#:doc-dirs '()
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-import
(lambda _
(substitute*
"src/main/clojure/clojure/algo/generic/math_functions.clj"
(("clojure.algo.generic.math-functions")
"clojure.algo.generic.math-functions\n(:refer-clojure :exclude [abs])")))))))
(synopsis "Generic versions of common functions")
(description
"Generic versions of commonly used functions, implemented as multimethods