From bd3d7c8587c6a229fdf242bfd12d540e5aa8acd3 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 6 Nov 2024 12:48:49 +0200 Subject: gnu: xlsx2csv: Honor the #:tests? flag. * gnu/packages/xml.scm (xlsx2csv)[arguments]: Adjust the custom 'check phase to honor the #:tests? flag. Change-Id: I13809dd414bc0e27b5bf404c35dabf67bbc4c4f4 --- gnu/packages/xml.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gnu') diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm index ef084f607b..181b90ae24 100644 --- a/gnu/packages/xml.scm +++ b/gnu/packages/xml.scm @@ -1458,12 +1458,13 @@ elements to their parents `(#:phases (modify-phases %standard-phases (replace 'check - (lambda _ + (lambda* (#:key tests? #:allow-other-keys) (substitute* "test/run" ;; Run tests with `python' only. (("^(PYTHON_VERSIONS = ).*" all m) (string-append m "['']"))) - (invoke "test/run")))))) + (when tests? + (invoke "test/run"))))))) (home-page "https://github.com/dilshod/xlsx2csv") (synopsis "XLSX to CSV converter") (description -- cgit v1.2.3