gnu: Add staticsite.

* gnu/packages/python-xyz.scm (staticsite): New variable.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
This commit is contained in:
Vagrant Cascadian 2023-01-26 15:43:17 -08:00 committed by Nicolas Goaziou
parent be1d2fb2f7
commit 8b654bf159
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -31769,6 +31769,52 @@ (define-public shrinkwrap
path.")
(license license:expat)))
(define-public staticsite
(package
(name "staticsite")
(version "2.3")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/spanezz/staticsite")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"1rhr25xydvnlrrcz389j3f6nknmczm5x11cagrji1qww70piwy08"))))
(build-system pyproject-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'use-themes-in-output
(lambda _
(substitute* "staticsite/global_settings.py"
(("/usr/share/staticsite") #$output))))
(add-after 'install 'install-themes
(lambda _
(let ((themedir (string-append #$output "/themes")))
(copy-recursively "themes" themedir)))))))
(native-inputs
(list perl-image-exiftool
python-dateutil
python-docutils
python-jinja2
python-markdown
python-pillow
python-pyinotify
python-pytz
python-pyyaml
python-ruamel.yaml
python-slugify
python-tornado
tzdata-for-tests))
(home-page "https://github.com/spanezz/staticsite")
(synopsis "Static site generator")
(description "Statistic is a static site generator based on Markdown and
Jinja2.")
(license (list license:gpl3+ license:expat))))
(define-public python-pymonad
(package
(name "python-pymonad")