guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 8fe4c67d9bda0440787a2eaf9684337eef072d67
Author: Hugo Buddelmeijer <[email protected]>
AuthorDate: Tue Nov 3 22:28:39 2026 +0100
gnu: staticsite: Fix build.
* gnu/packages/python-xyz.scm (staticsite): Fix build.
[inputs]: Move tzdata-for-tests from here ...
[native-inputs]: ... to here.
[arguments]<#:phases>: Add 'set-locale phase.
Merges: guix/guix!12294
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/python-xyz.scm | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 4eb807ef9d8..f446971894f 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -43924,6 +43924,12 @@ path.")
(list
#:phases
#~(modify-phases %standard-phases
+ ;; docutils defaults to utf-8, which breaks the staticsite tests.
+ ;; Reported upstream <https://github.com/spanezz/staticsite/pull/74>.
+ (add-after 'unpack 'set-locale
+ (lambda _
+ (substitute* "staticsite/global_settings.py"
+ (("\"C\"") "\"utf-8\""))))
(add-after 'unpack 'use-themes-in-output
(lambda _
(substitute* "staticsite/global_settings.py"
@@ -43934,11 +43940,12 @@ path.")
(copy-recursively "themes" themedir)))))))
(native-inputs
(list python-hatchling
- python-pytest))
+ python-pytest
+ tzdata-for-tests))
(inputs
(list perl-image-exiftool
python-dateutil
- python-docutils
+ python-docutils ;actively used
python-jinja2
python-markdown
python-pillow
@@ -43946,8 +43953,7 @@ path.")
python-pyyaml
python-ruamel.yaml
python-slugify
- python-toml
- tzdata-for-tests))
+ python-toml))
(home-page "https://github.com/spanezz/staticsite")
(synopsis "Static site generator")
(description