unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Vagrant Cascadian <vagrant@debian.org>
To: 61089@debbugs.gnu.org
Subject: [bug#61089] [PATCH] gnu: Add staticsite.
Date: Thu, 26 Jan 2023 17:31:19 -0800	[thread overview]
Message-ID: <871qng69w8.fsf@contorta> (raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.1: 0001-gnu-Add-staticsite.patch --]
[-- Type: text/x-diff, Size: 3091 bytes --]

From 04619d89e5f3a75f108c082dcd1c390d0bd3f82f Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@debian.org>
Date: Thu, 26 Jan 2023 15:43:17 -0800
Subject: [PATCH] gnu: Add staticsite.

* gnu/packages/python-xyz.scm (staticsite): New variable.
---
 gnu/packages/python-xyz.scm | 51 +++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b14c4ff0f3..a5be587603 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -31744,6 +31744,57 @@ (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* (#:key outputs #:allow-other-keys)
+                            (let ((out (assoc-ref outputs "out")))
+                              (substitute* "staticsite/global_settings.py"
+                                (("/usr/share/staticsite")
+                                 out)))))
+                        (add-after 'install 'install-themes
+                          (lambda* (#:key outputs #:allow-other-keys)
+                            (let ((themedir (string-append (assoc-ref outputs
+                                                                      "out")
+                                                           "/themes")))
+                              (copy-recursively "themes" themedir)))))))
+    (native-inputs (list python-pyinotify
+                         python-markdown
+                         python-docutils
+                         python-jinja2
+                         python-pytz
+                         python-dateutil
+                         python-pyyaml
+                         python-pillow
+                         python-slugify
+                         python-ruamel.yaml
+                         tzdata-for-tests
+                         python-tornado
+                         perl-image-exiftool))
+    (home-page "https://github.com/spanezz/staticsite")
+    (synopsis "Static site generator")
+    (description "Static site generator based on markdown and jinja2.
+Features:
+ - themable
+ - free content structure
+ - hugo-style archetypes and front matter
+ - live preview server")
+    (license (list license:gpl3+ license:expat))))
+
 (define-public python-pymonad
   (package
     (name "python-pymonad")
-- 
2.39.0


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

             reply	other threads:[~2023-01-27  1:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-27  1:31 Vagrant Cascadian [this message]
2023-02-23 14:37 ` bug#61089: [PATCH] gnu: Add staticsite Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871qng69w8.fsf@contorta \
    --to=vagrant@debian.org \
    --cc=61089@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).