diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-08-16 23:04:54 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-25 09:35:37 +0100 |
| commit | 523d68a25cb01fa80f1b1f65e7b1c2bd25699d14 (patch) | |
| tree | aeb02c77269e5f6646ce25d735b79e7085d5c44b /gnu | |
| parent | 8d02f097e66245dc743d08fc884e87ea0ce3a997 (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
Diffstat (limited to 'gnu')
| -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 5efcfcb6bc9..7ad9882d507 100644 --- a/gnu/packages/xml.scm +++ b/gnu/packages/xml.scm | |||
| @@ -1908,11 +1908,21 @@ The central program included in this package is @code{onsgmls}, which replaces | |||
| 1908 | (base32 | 1908 | (base32 |
| 1909 | "1yr5ka198p1c1yw0dpmvz5mvxr6b29mz64hb2vxax53fbmb97vc5")))) | 1909 | "1yr5ka198p1c1yw0dpmvz5mvxr6b29mz64hb2vxax53fbmb97vc5")))) |
| 1910 | (build-system pyproject-build-system) | 1910 | (build-system pyproject-build-system) |
| 1911 | ;; The test suite is not run, to avoid a dependency cycle with | 1911 | (arguments |
| 1912 | ;; python-xmlschema. | 1912 | (list |
| 1913 | (arguments `(#:tests? #f)) | 1913 | #:test-backend #~'unittest |
| 1914 | #:phases | ||
| 1915 | #~(modify-phases %standard-phases | ||
| 1916 | ;; 10 tests fail with: locale.Error: unsupported locale setting. | ||
| 1917 | (add-before 'check 'set-locales | ||
| 1918 | (lambda* (#:key inputs #:allow-other-keys) | ||
| 1919 | (setenv "GUIX_LOCPATH" | ||
| 1920 | (search-input-directory inputs "lib/locale"))))))) | ||
| 1914 | (native-inputs | 1921 | (native-inputs |
| 1915 | (list python-setuptools)) | 1922 | (list glibc-locales |
| 1923 | python-setuptools | ||
| 1924 | python-lxml | ||
| 1925 | python-xmlschema-bootstrap)) | ||
| 1916 | (home-page "https://github.com/sissaschool/elementpath") | 1926 | (home-page "https://github.com/sissaschool/elementpath") |
| 1917 | (synopsis "XPath 1.0/2.0 parsers and selectors for ElementTree and lxml") | 1927 | (synopsis "XPath 1.0/2.0 parsers and selectors for ElementTree and lxml") |
| 1918 | (description | 1928 | (description |
