diff options
author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-08-16 23:04:54 +0100 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-08-17 00:57:38 +0100 |
commit | d85d668e17164427d9465d0df16f5257dbe931ae (patch) | |
tree | 1639846fd4020bdcd9a159b27481be9721fade23 | |
parent | b4de847ad764ae2b4d7c8a4547aab8ce84a02624 (diff) |
gnu: python-elementpath: Enable tests.
* gnu/packages/xml.scm (python-elementpath): Enable tests.
[arguments] <test-backend>: Use 'unittest.
<phases>: Add 'set-locales.
[native-inputs]: Add glibc-locales, python-lxml, and
python-xmlschema-bootstrap.
Change-Id: I9a48dc1e508a6701472890a17a3ed0cf95d051a8
-rw-r--r-- | gnu/packages/xml.scm | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm index 29d969837d..565e383165 100644 --- a/gnu/packages/xml.scm +++ b/gnu/packages/xml.scm @@ -1872,11 +1872,21 @@ The central program included in this package is @code{onsgmls}, which replaces (base32 "1yr5ka198p1c1yw0dpmvz5mvxr6b29mz64hb2vxax53fbmb97vc5")))) (build-system pyproject-build-system) - ;; The test suite is not run, to avoid a dependency cycle with - ;; python-xmlschema. - (arguments `(#:tests? #f)) + (arguments + (list + #:test-backend #~'unittest + #:phases + #~(modify-phases %standard-phases + ;; 10 tests fail with: locale.Error: unsupported locale setting. + (add-before 'check 'set-locales + (lambda* (#:key inputs #:allow-other-keys) + (setenv "GUIX_LOCPATH" + (search-input-directory inputs "lib/locale"))))))) (native-inputs - (list python-setuptools)) + (list glibc-locales + python-setuptools + python-lxml + python-xmlschema-bootstrap)) (home-page "https://github.com/sissaschool/elementpath") (synopsis "XPath 1.0/2.0 parsers and selectors for ElementTree and lxml") (description |