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
This commit is contained in:
Efraim Flashner 2024-11-06 12:48:49 +02:00
parent 683e3f4fab
commit bd3d7c8587
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

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